oc · docs
docs / documentation

@orangecheck/design


@orangecheck/design / ErrorBoundary

Class: ErrorBoundary

Defined in: primitives/error-boundary.tsx:19

Extends

  • unknown<Props, State>

Constructors

Constructor

new ErrorBoundary(): ErrorBoundary;

Returns

ErrorBoundary

Inherited from

React.Component<Props, State>.constructor

Properties

PropertyTypeDefined in
<a id="property-state"></a> stateStateprimitives/error-boundary.tsx:20

Methods

componentDidCatch()

componentDidCatch(error: Error, info: ErrorInfo): void;

Defined in: primitives/error-boundary.tsx:26

Parameters

ParameterType
errorError
infoErrorInfo

Returns

void


render()

render(): any;

Defined in: primitives/error-boundary.tsx:34

Returns

any


reset()

reset(): any;

Defined in: primitives/error-boundary.tsx:32

Returns

any


getDerivedStateFromError()

static getDerivedStateFromError(error: Error): State;

Defined in: primitives/error-boundary.tsx:22

Parameters

ParameterType
errorError

Returns

State