Table of contents

Public class

Signature
class ErrorBoundary extends React.Component<
  React.PropsWithRef<React.PropsWithChildren<TLErrorBoundaryProps>>,
  TLErrorBoundaryState
> {}
References

TLErrorBoundaryProps

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
NameDescription

error

unknown
Returns
void

getDerivedStateFromError()

Public static method

Signature
static getDerivedStateFromError(error: Error): {
  error: Error
}
Parameters
NameDescription

error

Error
Returns
{
  error: Error
}

render()

Public method

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

Ellipse2dErrorScreen