suspense-patterns

Community

Place React Suspense boundaries with intent.

Authorjacob-balslev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you design React loading behavior so your UI streams smoothly instead of blocking on the slowest part or flashing fallbacks on updates.

Core Features & Use Cases

  • Boundary placement for loading granularity: decide which parts should share a fallback and which parts should load independently.
  • Suspense + ErrorBoundary pairing: structure failure and loading modes correctly so errors don’t leave you stuck in a loading state.
  • Flicker-free updates with transitions: use startTransition/useTransition to keep previously-rendered content visible while new data loads.
  • Parallel vs waterfall avoidance: prevent sequential fetching by starting independent work at the same tree level.
  • React 18+ and React 19 use hook coverage: handle both thrown-Promise Suspense and use(promise) patterns across Server/Client boundaries, including Next.js App Router loading.tsx.

Quick Start

Use suspense-patterns to review your React Suspense and ErrorBoundary placement for a streaming Next.js page, and rewrite it so slow sections stream independently without waterfall fetching or fallback flicker.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: suspense-patterns
Download link: https://github.com/jacob-balslev/skill-graph/archive/main.zip#suspense-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.