React · Senior · Question 25 of 75

What changed in startTransition 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.

Further reading

Problem with a question

React · Senior · question 25

Test yourself

Take the React · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz