oc · docs
documentation

@orangecheck/design


@orangecheck/design / ErrorBoundary

Class: ErrorBoundary

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

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:24

Methods

componentDidCatch()

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

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

Parameters

ParameterType
errorError
infoErrorInfo

Returns

void


render()

render(): any;

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

Returns

any


reset()

reset(): any;

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

Returns

any


getDerivedStateFromError()

static getDerivedStateFromError(error: Error): State;

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

Parameters

ParameterType
errorError

Returns

State