Skip to main content

Interface: ErrorBoundaryProperties

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

Props for the ErrorBoundary component.

Propertiesโ€‹

childrenโ€‹

readonly children: ReactNode

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

React children to be rendered within the error boundary


fallback?โ€‹

readonly optional fallback: ComponentType<ErrorBoundaryFallbackProps>

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

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:60

Optional callback function called when an error is caught

Parametersโ€‹

errorโ€‹

Error

errorInfoโ€‹

ErrorInfo

Returnsโ€‹

void