Documentation

@kanunilabs/pivotgrid-react


@kanunilabs/pivotgrid-react / PivotErrorBoundary

Class: PivotErrorBoundary

Extends

  • Component<Props, State>

Constructors

Constructor

new PivotErrorBoundary(props): PivotErrorBoundary

Parameters

props

Props

Returns

PivotErrorBoundary

Inherited from

Component<Props, State>.constructor

Constructor

new PivotErrorBoundary(props, context): PivotErrorBoundary

Parameters

props

Props

context

any

value of the parent Context specified in contextType.

Returns

PivotErrorBoundary

Inherited from

Component<Props, State>.constructor

Properties

state

state: State

Overrides

Component.state

Methods

componentDidCatch()

componentDidCatch(error, errorInfo): void

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

Parameters

error

Error

errorInfo

ErrorInfo

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


getDerivedStateFromError()

static getDerivedStateFromError(error): State

Parameters

error

Error

Returns

State