Skip to content

@sqlrooms/mosaic / DashboardPanelErrorBoundary

Class: DashboardPanelErrorBoundary

Extends

  • Component<Props, State>

Constructors

Constructor

new DashboardPanelErrorBoundary(props): DashboardPanelErrorBoundary

Parameters

ParameterType
propsProps

Returns

DashboardPanelErrorBoundary

Overrides

Component<Props, State>.constructor

Methods

getDerivedStateFromError()

static getDerivedStateFromError(error): State

Parameters

ParameterType
errorError

Returns

State


componentDidCatch()

componentDidCatch(error, errorInfo): void

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

Parameters

ParameterType
errorError
errorInfoErrorInfo

Returns

void

Overrides

Component.componentDidCatch


render()

render(): string | number | bigint | boolean | Iterable<ReactNode, any, any> | Promise<AwaitedReactNode> | Element | null | undefined

Returns

string | number | bigint | boolean | Iterable<ReactNode, any, any> | Promise<AwaitedReactNode> | Element | null | undefined

Overrides

Component.render