Open History to see the last commit
1---
2id: registerDefaultQueryClient
3title: registerDefaultQueryClient
4---
5β
6```ts
7function registerDefaultQueryClient(client: QueryClient): void;
8```
9β
10Defined in: [packages/lit-query/src/context.ts:31](https://github.com/TanStack/query/blob/main/packages/lit-query/src/context.ts#L31)
11β
12Registers a `QueryClient` as a process-local fallback for APIs that resolve a
13client without an explicit argument.
14β
15`QueryClientProvider` calls this automatically while it is connected. Prefer
16passing an explicit client or rendering under a provider when possible.
17β
18## Parameters
19β
20### client
21β
22[`QueryClient`](../classes/QueryClient.md)
23β
24The query client to register as the current default.
25β
26## Returns
27β
28`void`