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

resolveQueryClient.md

27 lines587 Bytes

function resolveQueryClient(explicit?: QueryClient): QueryClient;

Defined in: packages/lit-query/src/context.ts:124

Resolves an explicit QueryClient or falls back to useQueryClient.

Parameters

explicit?

QueryClient

Optional client supplied by the caller.

Returns

QueryClient

The explicit client when provided, otherwise the current default client.