Skip to main content

Class: ErrorBoundaryBase

Defined in: src/stores/error/ErrorBoundary.tsx:77

Extendsโ€‹

Constructorsโ€‹

Constructorโ€‹

new ErrorBoundaryBase(props: ErrorBoundaryProperties): ErrorBoundaryBase

Defined in: node_modules/@types/react/index.d.ts:950

Keep in sync with constructor signature of JSXElementConstructor and ComponentClass.

Parametersโ€‹

propsโ€‹

ErrorBoundaryProperties

Returnsโ€‹

ErrorBoundaryBase

Inherited fromโ€‹

PureComponent< ErrorBoundaryProperties, ErrorBoundaryState >.constructor

Constructorโ€‹

new ErrorBoundaryBase(props: ErrorBoundaryProperties, context: any): ErrorBoundaryBase

Defined in: node_modules/@types/react/index.d.ts:958

TODO: Ideally we'd infer the constructor signatur from contextType. Might be hard to ship without breaking existing code.

Parametersโ€‹

propsโ€‹

ErrorBoundaryProperties

contextโ€‹

any

Returnsโ€‹

ErrorBoundaryBase

Inherited fromโ€‹

PureComponent< ErrorBoundaryProperties, ErrorBoundaryState >.constructor

Propertiesโ€‹

stateโ€‹

state: ErrorBoundaryState

Defined in: src/stores/error/ErrorBoundary.tsx:81

Overridesโ€‹

PureComponent.state

Methodsโ€‹

handleRetry()โ€‹

handleRetry(): void

Defined in: src/stores/error/ErrorBoundary.tsx:86

Returnsโ€‹

void


getDerivedStateFromError()โ€‹

static getDerivedStateFromError(error: Error): ErrorBoundaryState

Defined in: src/stores/error/ErrorBoundary.tsx:94

Parametersโ€‹

errorโ€‹

Error

Returnsโ€‹

ErrorBoundaryState


componentDidCatch()โ€‹

componentDidCatch(error: Error, errorInfo: ErrorInfo): void

Defined in: src/stores/error/ErrorBoundary.tsx:102

Catches exceptions generated in descendant components. Unhandled exceptions will cause the entire component tree to unmount.

Parametersโ€‹

errorโ€‹

Error

errorInfoโ€‹

ErrorInfo

Returnsโ€‹

void

Overridesโ€‹

PureComponent.componentDidCatch


render()โ€‹

render(): Element

Defined in: src/stores/error/ErrorBoundary.tsx:115

Returnsโ€‹

Element

Overridesโ€‹

PureComponent.render