Skip to content
Alchemy Logo

NoAlchemyAccountContextError

Defined in: account-kit/react/src/errors.ts:18

Error thrown when a hook is called without a AlchemyAccountProvider.

The name of the hook.

  • BaseError

new NoAlchemyAccountContextError(hookName): NoAlchemyAccountContextError;

Defined in: account-kit/react/src/errors.ts:24

Constructs an error message indicating that a specific hook must be used within an AlchemyAccountProvider.

Parameters

ParameterTypeDescription

hookName

string

The name of the hook that must be used within the AlchemyAccountProvider

Returns

NoAlchemyAccountContextError

Overrides

BaseError.constructor;

PropertyTypeDefault value

version

string

VERSION

Was this page helpful?