@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
| Property | Type | Defined in |
|---|---|---|
<a id="property-state"></a> state | State | primitives/error-boundary.tsx:20 |
Methods
componentDidCatch()
componentDidCatch(error: Error, info: ErrorInfo): void;
Defined in: primitives/error-boundary.tsx:26
Parameters
| Parameter | Type |
|---|---|
error | Error |
info | ErrorInfo |
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
| Parameter | Type |
|---|---|
error | Error |
Returns
State