ErrorBoundary
Table of contents
Public class
Signature
class ErrorBoundary extends React.Component<
React.PropsWithRef<React.PropsWithChildren<TLErrorBoundaryProps>>,
TLErrorBoundaryState
> {}
References
Source
packages/editor/src/lib/components/ErrorBoundary.tsx
Properties
state
Public property
Signature
state: TLErrorBoundaryState
Methods
componentDidCatch()
Public method
Signature
componentDidCatch(error: unknown): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
getDerivedStateFromError()
Public static method
Signature
static getDerivedStateFromError(error: Error): {
error: Error
}
Parameters
Name | Description |
---|---|
|
|
Returns
{
error: Error
}
render()
Public method
Signature
render():
| boolean
| import('react/jsx-runtime').JSX.Element
| Iterable<React.ReactNode>
| null
| number
| string
| undefined