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

Method promise

packages/query-core/src/query.ts:343–345  ·  view source on GitHub ↗

* The promise for the currently in-flight fetch, if the query is fetching. * `undefined` when the query is not fetching. * @returns The promise of the in-flight fetch, or `undefined`.

()

Source from the content-addressed store, hash-verified

341 * @returns The promise of the in-flight fetch, or `undefined`.
342 */
343 get promise(): Promise<TData> | undefined {
344 return this.#retryer?.promise
345 }
346
347 /**
348 * Replaces the query's options and applies their `gcTime`. If the query has no data yet, it gets

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected