TanStack · Component
CatchBoundary
CatchBoundary catches errors from its children and renders a fallback component. It can notify your code about the error and reset when a key changes.
Last updated
Syntax
<CatchBoundary getResetKey={() => string} children={children} errorComponent={fallback} onCatch={callback} />In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ErrorComponentCatchNotFound