We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
连续多次调用 createUseStorageState 的 setState(pre => xx),期望 pre 是上次的值,这个期望和 useState 的 setState 表现是一致的。目前通过下面示例发现,连续多次调用 createUseStorageState 的 setState(pre => xx),pre的值都是当前重新渲染时的快照,而非上次 setState 的值。demo链接:https://stackblitz.com/edit/stackblitz-starters-pwoao8?file=src%2FApp.tsx
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
问题
连续多次调用 createUseStorageState 的 setState(pre => xx),期望 pre 是上次的值,这个期望和 useState 的 setState 表现是一致的。目前通过下面示例发现,连续多次调用 createUseStorageState 的 setState(pre => xx),pre的值都是当前重新渲染时的快照,而非上次 setState 的值。demo链接:https://stackblitz.com/edit/stackblitz-starters-pwoao8?file=src%2FApp.tsx
The text was updated successfully, but these errors were encountered: