Skip to main content

Suspense visual mental model

Suspense is a readiness and reveal boundary. It does not fetch data by itself.

What happens when a child suspends?React looks for the nearest Suspense boundary that can represent the waiting state.
RenderA subtree tries to render

A component reads a Suspense-enabled resource or lazy-loaded module.

SuspendRendering cannot finish yet

React pauses that subtree and searches upward for the nearest boundary.

FallbackShow fallback UI

The boundary represents the pending subtree with loading UI.

RevealRetry and reveal content

React renders the suspended subtree again and replaces the fallback when it can complete.

Suspense owns reveal, not the data source​

Separate the responsibilities
Resource layerMakes readiness available

Framework loaders, lazy imports, caches, or supported resource APIs provide something React can suspend on.

SuspenseCoordinates fallback and reveal

The boundary decides what users see while a descendant is not ready.

Error handlingHandles failure separately

Rejected work is an error concern, not a loading fallback concern.

Nested boundaries create reveal architecture​

Nested Suspense boundaries
Page shell

Navigation and stable page structure can render immediately.

Summary boundary

Reveal summary content when its resources are ready.

Activity boundary

Let a slower feed reveal independently instead of blocking the whole page.

1Shell renders
2Fallbacks appear
3Fast region reveals
4Slow region reveals

Lazy loading is one Suspense use case​

Lazy component lifecycle
Route or feature needs a lazy component
Nearest Suspense fallback appears
Component renders and boundary reveals it

Boundary placement is product design​

Where should a Suspense boundary go?
The whole screen must appear togetherUse a broader boundary.
Independent regions can reveal separatelyUse nested boundaries around meaningful regions.
A tiny element flashes constantlyThe boundary may be too granular or the loading strategy may be wrong.
Navigation should keep previous UI while next work preparesCombine Suspense architecture with transitions.
You only need to start a fetch requestSuspense is not the fetching API; choose a data/resource layer first.

Keep this mental model​

Suspense in one picture
Not a fetcher

Suspense does not decide how your data is requested or cached.

A readiness boundary

It represents a subtree while that subtree cannot finish rendering.

A reveal tool

Boundary placement controls how quickly meaningful regions become usable.

Continue with Suspense Boundaries for the detailed API and production patterns.