react.dev
react.dev copied to clipboard
[Suggestion]: Document fact that useActionState explicitly creates a Transition
Summary
By reading the React 19 blog post. It shows two equivalent pieces of code, one of which uses useTransition and the other useActionState. I get a strong impression that this means that useActionState explicitly creates a Transition. Is this true? If so, can it be documented in the useActionState reference? Thanks!
Page
No response
Details
Thanks again.
Note: Elsewhere in the docs it says that "Forms will automatically wrap Server Functions in transitions." (source). So I guess a similar clarification, stating if useActionState automatically wraps the passed function in a Transition would be nice.