ErrorBoundaryProps
interfaceImport
import { ErrorBoundaryProps } from '@modular/sdk/ui';Members4
- children
React.ReactNode- fallbackoptional
React.ReactNode | ((error: Error, reset: () => void) => React.ReactNode)Custom fallback UI. Receives the error and a reset function.
- onErroroptional
(error: Error, errorInfo: React.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.