-
Couldn't load subscription status.
- Fork 49.7k
Clarify useActionState async non-transition warning #32207
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
Conversation
|
Comparing: ae9017c...598f10b Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
| '`action` prop, or dispatch manually inside `startTransition`', | ||
| 'An async function with useActionState was called outside of a transition. ' + | ||
| 'This is likely not what you intended (for example, isPending will not update ' + | ||
| 'correctly). Either call the returned function inside startTransition, or pass it ' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"dispatch manually" vs new "call the returned function" is much clearer 👍🏻
#28491 (comment) DiffTrain build for [b65afdd](b65afdd)
#28491 (comment) DiffTrain build for [b65afdd](b65afdd)
#28491 (comment)