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

Function setQueryClientContext

packages/svelte-query/src/context.ts:20–22  ·  view source on GitHub ↗
(client: QueryClient)

Source from the content-addressed store, hash-verified

18
19/** Sets a QueryClient on Svelte's context */
20export const setQueryClientContext = (client: QueryClient): void => {
21 setContext(_contextKey, client)
22}
23
24const _isRestoringContextKey = Symbol('isRestoring')
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected