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