Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

resolveQueryClient.md

27 lines516 Bytes

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.