← All notes

React useDeferredValue: defer a non-urgent UI update

Answer: useDeferredValue is a React Hook that lets you defer updating a part of the UI. During an update it can keep the previous value, then try another re-render in the background with the new value. A common pattern is showing stale content while fresh content is loading.

Examples

import { useDeferredValue } from 'react';

function Search({ query }) {
  const deferredQuery = useDeferredValue(query);
  return <Results query={deferredQuery} />;
}

Notes

Pass the value you want to defer to the hook. The deferred value can lag behind the original value until the background render finishes.

Reference list

See also

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: React docs, useDeferredValue; reactjs/react.dev, useDeferredValue.md. CC-BY-4.0 (https://raw.githubusercontent.com/reactjs/react.dev/main/LICENSE-DOCS.md). Copyright Meta Platforms, Inc. and affiliates. Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: React docs, useDeferredValue; reactjs/react.dev, useDeferredValue.md. CC-BY-4.0 (https://raw.githubusercontent.com/reactjs/react.dev/main/LICENSE-DOCS.md). Copyright Meta Platforms, Inc. and affiliates.

Cite this

Permanent ID: iil:note:qnghbpmb

iinventedlight. 2026. "React useDeferredValue: defer a non-urgent UI update." iinventedlight Library, iil:note:qnghbpmb, version of 2026-11-18. https://iinventedlight.com/library/notes/react-usedeferredvalue/. License: CC-BY-4.0.

@misc{iil_note_qnghbpmb,
  author = {{iinventedlight}},
  title = {{React useDeferredValue: defer a non-urgent UI update}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/react-usedeferredvalue/},
  note = {Permanent ID iil:note:qnghbpmb. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

Extra files beside this note

These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.

All artifact files (JSON index)

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/react-usedeferredvalue.md.