ErrorBoundary

See source code
Table 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

NameDescription

error

Error

Returns

{
  error: Error
}

componentDidCatch()

componentDidCatch(error: unknown): void

Parameters

NameDescription

error

unknown

Returns

void

render()

render():
  | boolean
  | import('react/jsx-runtime').JSX.Element
  | Iterable<React.ReactNode>
  | null
  | number
  | string
  | undefined

Prev
EnvironmentManager
Next
Geometry2d