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

Function tryGetQueryClient

packages/lit-query/src/controllers/BaseController.ts:123–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 }
122
123 protected tryGetQueryClient(): QueryClient | undefined {
124 return this.explicitClient ?? this.contextClient
125 }
126
127 protected getQueryClient(): QueryClient {
128 const client = this.tryGetQueryClient()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected