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

Function getDefaultQueryClient

packages/lit-query/src/context.ts:69–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67 * client or more than one registered client.
68 */
69export function getDefaultQueryClient(): QueryClient | undefined {
70 if (registeredClients.size > 1) {
71 return undefined
72 }
73
74 return defaultClient
75}
76
77/**
78 * Creates the error thrown when no `QueryClient` is available.

Callers 2

useQueryClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected