Skip to main content

ErrorBoundaryProps

interface
interface ErrorBoundaryProps

Import

import { ErrorBoundaryProps } from '@modular/sdk/ui';

Members4

children
ReactNode
fallbackoptional
ReactNode | (error: Error, reset: () => void) => ReactNode

Custom fallback UI. Receives the error and a reset function.

onErroroptional
(error: Error, errorInfo: ErrorInfo) => void

Called when an error is caught. Use for logging, telemetry, etc.

resetKeyoptional
string | number

When this key changes, the error boundary resets its error state. Useful for recovering after navigation or data changes.