useDeferredValue returns a lagging version of a value. React can paint urgent UI first and update the deferred result when work permits.
In the demo, the search text grows immediately while the result query follows later. Request cancellation and caching remain separate concerns.
When to use
Use it when typing must appear immediately but rendering results is slow.