react.dev
react.dev copied to clipboard
Is this demo in the React doc an incorrect usage of startTransition?
- Shouldn't setError and setName need to be wrapped with a new startTransition?
- It seems meaningless to apply startTransition to await updateName in the document, doesn't it?
https://react.dev/reference/react/useTransition#react-doesnt-treat-my-state-update-after-await-as-a-transition