transition
A React state update marked as not urgent, which React may interrupt or delay so urgent input stays responsive.
In more detail
You mark updates as transitions with startTransition. React renders them in the background, shows the old UI in the meantime and throws the work away if newer state arrives. In React 19 a transition can wrap an async function, and the whole async operation counts as pending.
Related terms
- useTransition — The React hook that returns an isPending flag and a startTransition function for marking state updates as non-urgent transitions.
- urgent update — A state change that users expect to see immediately, such as typed characters or a toggled checkbox.
- Action (React) — In React 19, an async function run inside a transition, typically to submit data, with pending state, errors and optimistic updates handled by React.
- pending state — The in-between state while asynchronous work, such as a transition or form submission, has started but not finished.
Taught in
- State with useState: Immutability And Asynchronous Batching — React 19 & Modern Component Architecture
- Complex State with useReducer: State Machines And Action Types — React 19 & Modern Component Architecture
- useId: Generating Stable Accessible Form Element Identifiers — React 19 & Modern Component Architecture
- Concurrent Mode: Interruptible Work And Lane Priority — React 19 & Modern Component Architecture
- useTransition: Non-Blocking State Updates for Fluid UI — React 19 & Modern Component Architecture
- useActionState: Async Action Handlers And Pending States — React 19 & Modern Component Architecture
- useOptimistic: Instantaneous UI Updates with Rollback — React 19 & Modern Component Architecture
- Code-Splitting with React.lazy: Dynamic Imports And Chunks — React 19 & Modern Component Architecture