← All notes

useTransition marks state updates as non-blocking Transitions and exposes isPending

Answer: const [isPending, startTransition] = useTransition() is a React Hook for rendering a part of the UI in the background. Wrap state updates in startTransition to mark them as a Transition, and use isPending to show a pending visual state.

Example

import { useState, useTransition } from 'react';
function TabContainer() {
  const [isPending, startTransition] = useTransition();
  const [tab, setTab] = useState('about');
  function selectTab(nextTab) {
    startTransition(() => { setTab(nextTab); });
  }
  return isPending ? <Spinner /> : <Tabs tab={tab} onSelect={selectTab} />;
}

Returns

useTransition does not take any parameters. It returns an array with exactly two items:

  1. The isPending flag that tells you whether there is a pending Transition.
  2. The startTransition function that lets you mark updates as a Transition.

Actions

A function passed to startTransition is called an "Action". By convention, callbacks called inside startTransition (such as a callback prop) are named action or end in "Action". To create Actions and access the pending state, call useTransition at the top of your component.

Without the Hook

When useTransition is not available, call the standalone startTransition; it works outside components, such as from a data library, but it gives no isPending flag.

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 (reference), useTransition; reactjs/react.dev (GitHub), startTransition (source page). 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 (reference), useTransition; reactjs/react.dev (GitHub), startTransition (source page). 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:dn93c4dn

iinventedlight. 2026. "useTransition marks state updates as non-blocking Transitions and exposes isPending." iinventedlight Library, iil:note:dn93c4dn, version of 2026-11-18. https://iinventedlight.com/library/notes/react-usetransition/. License: CC-BY-4.0.

@misc{iil_note_dn93c4dn,
  author = {{iinventedlight}},
  title = {{useTransition marks state updates as non-blocking Transitions and exposes isPending}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/react-usetransition/},
  note = {Permanent ID iil:note:dn93c4dn. 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).

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