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

Method getCurrentQuery

packages/query-core/src/queryObserver.ts:371–373  ·  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

369 * @returns The observed query.
370 */
371 getCurrentQuery(): Query<TQueryFnData, TError, TQueryData, TQueryKey> {
372 return this.#currentQuery
373 }
374
375 /**
376 * 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