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

Method isFetched

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

* Returns `true` if the query has been fetched, i.e. it has resolved with * either data or an error at least once. * @returns `true` if the query has been fetched.

()

Source from the content-addressed store, hash-verified

497 * @returns `true` if the query has been fetched.
498 */
499 isFetched() {
500 return this.state.dataUpdateCount + this.state.errorUpdateCount > 0
501 }
502
503 /**
504 * Returns `true` if the query has data and at least one observer configured with

Callers 4

isDisabledMethod · 0.95
createResultMethod · 0.80
streamedQueryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected