ErrorBoundary
classImport
import { ErrorBoundary } from '@modular/sdk/ui';Members5
- state
ErrorBoundaryState- componentDidCatch
(error: Error, errorInfo: ErrorInfo) => voidCatches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.
- componentDidUpdate
(prevProps: ErrorBoundaryProps) => voidCalled immediately after updating occurs. Not called for the initial render. The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.
- getDerivedStateFromError
(error: Error) => ErrorBoundaryState- render
() => string | number | bigint | boolean | Element | Iterable<ReactNode, any, any> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | null | undefined> | null | undefined