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

Method isFetched

packages/query-core/src/query.ts:412–414  ·  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.

()

Source from the content-addressed store, hash-verified

410 * either data or an error at least once.
411 */
412 isFetched() {
413 return this.state.dataUpdateCount + this.state.errorUpdateCount > 0
414 }
415
416 /**
417 * Returns `true` if the query has 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