Skip to content

ErrorBoundary

@firecms/core


@firecms/core / ErrorBoundary

Defined in: components/ErrorBoundary.tsx:5

  • Component<PropsWithChildren<Record<string, unknown>>, { error: Error | null; }>

new ErrorBoundary(props): ErrorBoundary

Defined in: components/ErrorBoundary.tsx:8

any

ErrorBoundary

React.Component<PropsWithChildren<Record<string, unknown>>, { error: Error | null }>.constructor

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.

Error

ErrorInfo

void

React.Component.componentDidCatch


render(): string | number | boolean | Iterable<ReactNode, any, any> | Element | null | undefined

Defined in: components/ErrorBoundary.tsx:23

string | number | boolean | Iterable<ReactNode, any, any> | Element | null | undefined

React.Component.render


static getDerivedStateFromError(error): object

Defined in: components/ErrorBoundary.tsx:14

Error

object

error: Error