File contents
name: suspense-boundary-design
description: Design React Suspense boundaries interactively. Use when planning loading states, configuring boundary granularity, or combining with ErrorBoundary.
allowed-tools: Read, Write, Edit, Grep, Glob
Suspense Boundary Design
Interview Questions
Loading units - Which components load independently?
Error handling - Show error UI, retry button, or bubble up?
Loading UI - Skeleton, spinner, or shimmer?
Pattern
import { ErrorBoundary } from 'react-error-boundary';
<ErrorBoundary FallbackComponent={ErrorFallback}>
<Suspense fallback={<Skeleton />}>
<AsyncComponent />
</Suspense>
</ErrorBoundary>
Rule: ErrorBoundary wraps Suspense (outside).
Best Practices
Match skeleton to content size (prevents layout shifts)
Avoid nested Suspense unless intentional waterfall
Group components sharing data under same boundary
Related
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1 --- 2 name: naporin0624-claude-plugin-hono-electron-suspense-boundary-de 3 description: --- 4 --- 5 --- 6 name: suspense-boundary-design 7 description: Design React Suspense boundaries interactively. Use when planning loading states, configuring boundary granularity, or combining with ErrorBoundary. 8 allowed-tools: Read, Write, Edit, Grep, Glob 9 --- 10 11 # Suspense Boundary Design 12 13 ## Interview Questions 14 15 1. **Loading units** - Which components load independently? 16 2. **Error handling** - Show error UI, retry button, or bubble up? 17 3. **Loading UI** - Skeleton, spinner, or shimmer? 18 19 ## Pattern 20 21 ```tsx 22 import { ErrorBoundary } from 'react-error-boundary'; 23 24 <ErrorBoundary FallbackComponent={ErrorFallback}> 25 <Suspense fallback={<Skeleton />}> 26 <AsyncComponent /> 27 </Suspense> 28 </ErrorBoundary> 29 ``` 30 31 **Rule: ErrorBoundary wraps Suspense (outside).** 32 33 ## Best Practices 34 35 1. Match skeleton to content size (prevents layout shifts) 36 2. Avoid nested Suspense unless intentional waterfall 37 3. Group components sharing data under same boundary 38 39 ## Related 40 41 - [jotai-reactive-atoms/HYBRID-ATOM.md](../jotai-reactive-atoms/HYBRID-ATOM.md) - Suspense with async atoms 42 43 --- 44 > Converted and distributed by [TomeVault](https://tomevault.io/claim/naporin0624) — claim your Tome and manage your conversions. 45 <!-- tomevault:4.0:skill_md:2026-04-13 -->
tomevault-io/skills-registry/tree/main/naporin0624--claude-plugin-hono-electron--suspense-boundary-design commit 2c8cd92a1a
Frequently asked questions How do I install the Naporin0624 Claude Plugin Hono Electron Suspense Boundary Design skill? Run npx skillmds@latest add tomevault-io/naporin0624-claude-plugin-hono-electron-suspense-boundary-de in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Naporin0624 Claude Plugin Hono Electron Suspense Boundary Design skill do? --- It is listed under Coding & Dev Tools on SkillMD.
Is Naporin0624 Claude Plugin Hono Electron Suspense Boundary Design safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Naporin0624 Claude Plugin Hono Electron Suspense Boundary Design? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Naporin0624 Claude Plugin Hono Electron Suspense Boundary Design free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Naporin0624 Claude Plugin Hono Electron Suspense Boundary Design? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.