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

Method getCurrentQuery

packages/query-core/src/queryObserver.ts:370–372  ·  view source on GitHub ↗

* Returns the `Query` instance this observer is currently observing. * @returns The observed query.

()

Source from the content-addressed store, hash-verified

368 * @returns The observed query.
369 */
370 getCurrentQuery(): Query<TQueryFnData, TError, TQueryData, TQueryKey> {
371 return this.#currentQuery
372 }
373
374 /**
375 * Refetches the observed query and returns a promise that resolves with

Callers 10

runFunction · 0.80
useBaseQueryFunction · 0.80
shouldBlockPendingTasksFunction · 0.80
createServerSubscriberFunction · 0.80
useBaseQueryFunction · 0.80
getQueriesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected