AppErrorBoundary
A component that catches JavaScript errors anywhere in their child component tree and displays a fallback UI.
Install: pnpm add-component AppErrorBoundary
Catching component errors
The Error Boundary wraps a "Broken" component to prevent the whole app from crashing.
API
fallback(string): The error message to display when a crash is caught.onError((error: Error) => void): Callback function triggered when an error is captured.