Skip to content
API/MissingQubeeProviderError

MissingQubeeProviderError

error
src/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 { MissingQubeeProviderError } from '@qubeejs/react';
new MissingQubeeProviderError()
if (error instanceof MissingQubeeProviderError) {
// render the table without a shared instance
}