QuizNot attempted
What useDeferredValue does
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- Render with the latest
queryimmediately for urgent updates elsewhere, whiledeferredQuerymay lag behind and "catch up" in a lower-priority render, letting React keep the input responsive
useDeferredValuereturns the previous value during urgent renders and schedules a lower-priority, interruptible re-render with the new one, so the input stays responsive whiledeferredQuerylags and catches up.- Not 'skip until typing stops': it re-renders as soon as React has spare time, not after a pause.
- Not a fixed-timer debounce: there is no delay, the timing adapts to the device.
- Not synchronous on every keystroke: the opposite of its purpose.