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

Method getCurrentQuery

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

* Returns the `Query` instance this observer is currently observing.

()

Source from the content-addressed store, hash-verified

355 * Returns the `Query` instance this observer is currently observing.
356 */
357 getCurrentQuery(): Query<TQueryFnData, TError, TQueryData, TQueryKey> {
358 return this.#currentQuery
359 }
360
361 /**
362 * Refetches the observed query and returns a promise that resolves with

Callers 10

runFunction · 0.80
useBaseQueryFunction · 0.80
createBaseQueryFunction · 0.80
createServerSubscriberFunction · 0.80
useBaseQueryFunction · 0.80
getQueriesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected