Open History to see the last commit
1---
2id: resolveQueryClient
3title: resolveQueryClient
4---
5β
6```ts
7function resolveQueryClient(explicit?: QueryClient): QueryClient;
8```
9β
10Defined in: [packages/lit-query/src/context.ts:124](https://github.com/TanStack/query/blob/main/packages/lit-query/src/context.ts#L124)
11β
12Resolves an explicit `QueryClient` or falls back to `useQueryClient`.
13β
14## Parameters
15β
16### explicit?
17β
18[`QueryClient`](../classes/QueryClient.md)
19β
20Optional client supplied by the caller.
21β
22## Returns
23β
24[`QueryClient`](../classes/QueryClient.md)
25β
26The explicit client when provided, otherwise the current default
27client.