Skip to content

useInterval的ready使用教程? #15

Closed Answered by junerver
danatechgithub4 asked this question in Q&A
Discussion options

You must be logged in to vote

15快照版本更新~

同时优化了闭包问题,现在无需担心在 useInterval 中是使用解构 useStateuseGetState 可能导致的闭包问题了;

ready 从配置选项中移除,增加了一个新的重载,可以直接使用 ready 对 interval 闭包进行 执行(resume)结束(pause) 的控制

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@danatechgithub4
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by junerver
Comment options

You must be logged in to vote
2 replies
@danatechgithub4
Comment options

@junerver
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants