Skip to main content

ErrorBoundaryProps

interface
interface ErrorBoundaryProps

Import

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) => 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.