MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / useQueryClient

Function useQueryClient

src/queryClientProvider/useQueryClient.ts:5–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { QueryClient } from '../queryCore/core/queryClient'
4
5export default function useQueryClient(): QueryClient {
6 const queryClient: QueryClient = getContext('queryClient')
7 if (!queryClient) {
8 throw new Error('No QueryClient set, use QueryClientProvider to set one')
9 }
10 return queryClient
11}

Callers 7

useIsMutatingFunction · 0.90
useInfiniteQueryFunction · 0.90
useQueriesFunction · 0.90
useIsFetchingFunction · 0.90
useQueryFunction · 0.90
useHydrateFunction · 0.90
useMutationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…