ErrorBoundaryProps
interfaceImport
import { ErrorBoundaryProps } from '@modular/sdk/ui';Members4
- children
ReactNode- fallbackoptional
ReactNode | (error: Error, reset: () => void) => ReactNodeCustom fallback UI. Receives the error and a reset function.
- onErroroptional
(error: Error, errorInfo: ErrorInfo) => voidCalled when an error is caught. Use for logging, telemetry, etc.
- resetKeyoptional
string | numberWhen this key changes, the error boundary resets its error state. Useful for recovering after navigation or data changes.