Documentation

@kanunilabs/pivotgrid-react


@kanunilabs/pivotgrid-react / PivotErrorBoundary

Class: PivotErrorBoundary

Defined in: packages/react/src/components/PivotErrorBoundary.tsx:14

Extends

  • Component<Props, State>

Constructors

Constructor

new PivotErrorBoundary(props): PivotErrorBoundary

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts:958

Parameters

props

Props

Returns

PivotErrorBoundary

Inherited from

Component<Props, State>.constructor

Constructor

new PivotErrorBoundary(props, context): PivotErrorBoundary

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@types/react/index.d.ts:966

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

Defined in: packages/react/src/components/PivotErrorBoundary.tsx:15

Overrides

Component.state

Methods

componentDidCatch()

componentDidCatch(error, errorInfo): void

Defined in: packages/react/src/components/PivotErrorBoundary.tsx:21

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

Defined in: packages/react/src/components/PivotErrorBoundary.tsx:29

Returns

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

Overrides

Component.render


getDerivedStateFromError()

static getDerivedStateFromError(error): State

Defined in: packages/react/src/components/PivotErrorBoundary.tsx:17

Parameters

error

Error

Returns

State