Skip to content

API reference / @chanx-js/client / react / setDefaultClient

Function: setDefaultClient() ​

ts
function setDefaultClient(options): void;

Defined in: packages/client/src/react/context.ts:14

Set the client used when no provider is mounted. Handy in tests and small apps.

Parameters ​

ParameterType
options| ClientOptions | ChanxClient

Returns ​

void

MIT licensed