Skip to main content

Interface: ErrorBoundaryProperties

Defined in: src/stores/error/ErrorBoundary.tsx:60

Props for the ErrorBoundary component.

Remarksโ€‹

Accepts children to render, an optional fallback component for error display, and an optional error handler callback.

Propertiesโ€‹

childrenโ€‹

readonly children: ReactNode

Defined in: src/stores/error/ErrorBoundary.tsx:62

React children to be rendered within the error boundary


fallback?โ€‹

readonly optional fallback: ComponentType<{ error?: Error; onRetry: () => void; }>

Defined in: src/stores/error/ErrorBoundary.tsx:64

Optional custom fallback component to render when an error occurs


onError()?โ€‹

readonly optional onError: (error: Error, errorInfo: ErrorInfo) => void

Defined in: src/stores/error/ErrorBoundary.tsx:71

Optional callback function called when an error is caught

Parametersโ€‹

errorโ€‹

Error

errorInfoโ€‹

ErrorInfo

Returnsโ€‹

void