Suspense Patterns

Use when designing or reviewing React Suspense usage: where to place Suspense boundaries to control loading granularity, the difference between Suspense for data fetching and Suspense for code splitting, how Suspense interacts with Server Components for streaming HTML, how error boundaries pair with Suspense (and why they must be distinct components), the relationship between Suspense and React's transition APIs (useTransition, startTransition), and the design rules that prevent waterfall fetches, layout shift, and SEO regressions. Covers React 18+ and 19's `use` hook for unwrapping Promises in Client Components. Do NOT use for general React rendering strategy choice (use rendering-models), for the underlying hook primitives (use hooks-patterns), for streaming protocols beyond Suspense (use streaming-architecture), or for Server Component design (use server-components-design).

jacob-balslev eaf42b3 5 files · 56.9 KB Updated

File contents

jacob-balslev/skill-graph/tree/main/marketplace/skills/suspense-patterns commit eaf42b3122

Frequently asked questions

npx skillmds@latest add jacob-balslev/suspense-patterns