API/MissingQubeeProviderError
MissingQubeeProviderError
errorsrc/errors/missing-qubee-provider.error.ts
Thrown by useQubeeContext when no QubeeProvider is above the calling component.
It extends Error rather than core’s QubeeError, whose code is a closed union owned by
@qubeejs/core. Object.setPrototypeOf keeps instanceof working when a consumer’s
toolchain downlevels classes below ES2015.
Extends Error.
Import
Section titled “Import”import { MissingQubeeProviderError } from '@qubeejs/react';Constructor
Section titled “Constructor”new MissingQubeeProviderError()Example
Section titled “Example”if (error instanceof MissingQubeeProviderError) { // render the table without a shared instance}