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โ
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โ
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()โ
staticgetDerivedStateFromError(error:Error):ErrorBoundaryState
Defined in: src/stores/error/ErrorBoundary.tsx:94
Parametersโ
errorโ
Returnsโ
componentDidCatch()โ
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โ
errorInfoโ
Returnsโ
void
Overridesโ
PureComponent.componentDidCatch
render()โ
render():
Element
Defined in: src/stores/error/ErrorBoundary.tsx:115
Returnsโ
Overridesโ
PureComponent.render