Skip to content
masterclass Buddy

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.

Subscribe
  • ErrorComponent
  • CatchNotFound

Source: CatchBoundary component | TanStack Router Docs. Checked 2026-11-03.