ErrorBoundary class

Signature

  1. export declare class ErrorBoundary extends PureComponent<Props, State>

Import

  1. import { ErrorBoundary } from '@grafana/ui';

Properties

PropertyModifiersTypeDescription
stateState

Methods

MethodModifiersDescription
componentDidCatch(error, errorInfo)
componentDidUpdate(prevProps)
render()

state property

Signature

  1. readonly state: State;

componentDidCatch method

Signature

  1. componentDidCatch(error: Error, errorInfo: ErrorInfo): void;

Parameters

ParameterTypeDescription
errorError
errorInfoErrorInfo

Returns:

void

componentDidUpdate method

Signature

  1. componentDidUpdate(prevProps: Props): void;

Parameters

ParameterTypeDescription
prevPropsProps

Returns:

void

render method

Signature

  1. render(): React.ReactNode;

Returns:

React.ReactNode