MCPcopy Create free account
hub / github.com/TanStack/query / useQueryClient

Function useQueryClient

packages/svelte-query/src/useQueryClient.ts:24–27  ·  view source on GitHub ↗
(queryClient?: QueryClient)

Source from the content-addressed store, hash-verified

22 * ```
23 */
24export function useQueryClient(queryClient?: QueryClient): QueryClient {
25 if (queryClient) return queryClient
26 return getQueryClientContext()
27}

Callers 7

createBaseQueryFunction · 0.70
useHydrateFunction · 0.70
useMutationStateFunction · 0.70
useIsFetchingFunction · 0.70
useIsMutatingFunction · 0.70
createQueriesFunction · 0.70
createMutationFunction · 0.70

Calls 1

getQueryClientContextFunction · 0.85

Tested by

no test coverage detected