React · Senior · Question 25 of 75
What changed in startTransition in React 19?
- ✓Correct answer: It accepts async functions (Actions) and keeps
isPendinguntil they finish - 2It became synchronous and no longer allows interrupting the update's render
- 3It was replaced by
useDeferredValueand deprecated in React 19
Explanation
In React 19, startTransition(async () => { await save(); setState(...) }) is an Action: isPending is true for the whole duration, errors can be handled, and forms with action use this mechanism automatically. Caveat: setState after await must be wrapped in startTransition again.