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