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

Function current

packages/lit-query/src/controllers/BaseController.ts:191–197  ·  view source on GitHub ↗

* The latest result of the controller. * @returns The latest result. * @throws {Error} If no `QueryClient` could be resolved from context.

()

Source from the content-addressed store, hash-verified

189 * @throws {Error} If no `QueryClient` could be resolved from context.
190 */
191 get current(): TResult {
192 if (this.queryClientResolutionState === 'missing') {
193 throw createMissingQueryClientError()
194 }
195
196 return this.result
197 }
198
199 /**
200 * Whether the controller's host is connected.

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected