react.dev icon indicating copy to clipboard operation
react.dev copied to clipboard

[Suggestion]: Document fact that useActionState explicitly creates a Transition

Open sebastiancarlos opened this issue 1 year ago • 1 comments

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.

sebastiancarlos avatar Oct 08 '24 19:10 sebastiancarlos

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.

sebastiancarlos avatar Oct 09 '24 21:10 sebastiancarlos