React·Intermediate·Coding·1 min read
Does Suspense catch errors?
Short interview answer
No. A rejected operation is handled by an error boundary, while Suspense handles pending work. Production trees often place loading and error boundaries together with scopes chosen for independent recovery.
Example
<ErrorBoundary fallback={<RetryPanel />}> <Suspense fallback={<Spinner />}> <Report /> </Suspense></ErrorBoundary>Key takeaway
Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.