preemption
Interrupting work in progress so something more urgent can run first.
In more detail
The interrupted work is resumed or redone later. Operating systems preempt processes; libraries can preempt their own work.
Example
When a keystroke arrives during a slow transition render, React pauses the background work, commits the urgent update, then restarts the transition with the latest state.Related terms
- concurrent rendering — React ability to prepare several versions of the UI at once and to pause, resume or abandon rendering work so urgent updates are handled first.
- lane — The internal React label for the priority of an update, stored as one bit in a number so many priorities can be combined and compared quickly.
- transition — A React state update marked as not urgent, which React may interrupt or delay so urgent input stays responsive.
Taught in
- 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