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