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โ
readonlychildren:ReactNode
Defined in: src/stores/error/ErrorBoundary.tsx:62
React children to be rendered within the error boundary
fallback?โ
readonlyoptionalfallback:ComponentType<{error?:Error;onRetry: () =>void; }>
Defined in: src/stores/error/ErrorBoundary.tsx:64
Optional custom fallback component to render when an error occurs
onError()?โ
readonlyoptionalonError: (error:Error,errorInfo:ErrorInfo) =>void
Defined in: src/stores/error/ErrorBoundary.tsx:71
Optional callback function called when an error is caught
Parametersโ
errorโ
errorInfoโ
Returnsโ
void