ErrorBoundary
See source codeTable of contents
Extends React.Component<React.PropsWithRef<React.PropsWithChildren<TLErrorBoundaryProps>>, { error: Error | null; }>
.
class ErrorBoundary extends React.Component<
React.PropsWithRef<React.PropsWithChildren<TLErrorBoundaryProps>>,
{
error: Error | null
}
> {}
Properties
error
error: Error | null
state
state: {
error: null
}
Methods
getDerivedStateFromError()
static
static getDerivedStateFromError(error: Error): {
error: Error
}
Parameters
Name | Description |
---|---|
|
|
Returns
{
error: Error
}
componentDidCatch()
componentDidCatch(error: unknown): void
Parameters
Name | Description |
---|---|
|
|
Returns
void
render()
render():
| boolean
| import('react/jsx-runtime').JSX.Element
| Iterable<React.ReactNode>
| null
| number
| string
| undefined
Prev
EnvironmentManagerNext
Geometry2d