Comments (2)
3的话,感觉不难实现呀,用 async...await...
就可以了
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await
from hooks.
3的话,感觉不难实现呀,用
async...await...
就可以了https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await
这块用户自己把 fn 定义成 promise,也不是很难。暂时先保持这样,如果以后确实有需求的话,再加2,3点。
from hooks.
Related Issues (20)
- 请问createEffectWithTarget这个函数的设计考量是什么? HOT 3
- useLongPress 配置了 moveThreshold:{y: 10}, 在safari里有问题,safari不支持touchEvent HOT 3
- useEventEmitter emit() 方法是否支持返回一个 promise? HOT 2
- useFullscreen 使用在全屏模式下 top-layer 是否合理? HOT 1
- useRequest 新增滚动到视窗后自动请求的插件 HOT 3
- useVirtualList是否可以和useInfiniteScroll是否可以一起用? HOT 2
- Maximum update depth exceeded. HOT 1
- webpack 配置babel对node_modules下的ahooks进行编译,会有很多/* unused harmony default export */ HOT 2
- useInterval,在页面最小化,或者切换到其他页面的时候,如何防止定时器暂停啊。 HOT 1
- [RFC] useMouseInElement HOT 1
- useUrlState 设置ts类型识别不到 HOT 5
- [RFC] useTheme
- useResponsive默认的响应式配置有错误 HOT 1
- 多次调用useRequest时,慢返回的请求会覆盖快返回的请求,如何解决? HOT 3
- [RFC] useTimer
- UseRequest [Strict Mode] the first request could not be completed
- useControllableValue 的第一个参数,假如是null会直接报错 HOT 1
- usegetState的get函数返回值,不是我所预期的,在set函数执行后,应该在同步代码中得到最新的state变种(方便后面以最新state做判断等),可以用ref做, HOT 4
- [FEATURE]CDN地址 HOT 4
- useReactive违背react的数据的不可变性,可以用这个useStateRef代替 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hooks.