-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useDidRecover回调里面如何拿到最新的state #115
Comments
场景: |
cache-router 版本换成 v1.11.1,然后增加 deps 试试,如下 useDidRecover(..., [count]) |
useDidRecover(()=>console.log(count), [count]) |
其实感觉不应该需要 deps 数组,保持 effect 函数最新是关键,我重开下下 mark |
solved problem in this way, thx. |
1 similar comment
solved problem in this way, thx. |
视图里面的cocunt已经变成5了,但是在useDidRecover打印出来的还是0
The text was updated successfully, but these errors were encountered: