ErrorBoundary
@firecms/core / ErrorBoundary
Class: ErrorBoundary
Section titled “Class: ErrorBoundary”Defined in: components/ErrorBoundary.tsx:5
Extends
Section titled “Extends”Component<PropsWithChildren<Record<string,unknown>>, {error:Error|null; }>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ErrorBoundary(
props):ErrorBoundary
Defined in: components/ErrorBoundary.tsx:8
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”ErrorBoundary
Overrides
Section titled “Overrides”React.Component<PropsWithChildren<Record<string, unknown>>, { error: Error | null }>.constructor
Methods
Section titled “Methods”componentDidCatch()
Section titled “componentDidCatch()”componentDidCatch(
error,errorInfo):void
Defined in: components/ErrorBoundary.tsx:18
Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.
Parameters
Section titled “Parameters”Error
errorInfo
Section titled “errorInfo”ErrorInfo
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”React.Component.componentDidCatch
render()
Section titled “render()”render():
string|number|boolean|Iterable<ReactNode,any,any> |Element|null|undefined
Defined in: components/ErrorBoundary.tsx:23
Returns
Section titled “Returns”string | number | boolean | Iterable<ReactNode, any, any> | Element | null | undefined
Overrides
Section titled “Overrides”React.Component.render
getDerivedStateFromError()
Section titled “getDerivedStateFromError()”
staticgetDerivedStateFromError(error):object
Defined in: components/ErrorBoundary.tsx:14
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”object
error:
Error