useTransition Pending UI: Showing Wait Without Blocking the Keystroke
isPending, startTransition, and patterns for spinners that do not steal focus or freeze the input that triggered the update.
2 min read
Tag
2 articles · 6 min of reading
isPending, startTransition, and patterns for spinners that do not steal focus or freeze the input that triggered the update.
Most useEffect bugs come from using it as a general-purpose lifecycle hook. Here's how to tell when you actually need it — and when you don't.