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

Method isActive

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

* Returns `true` if the query has at least one observer for which `enabled` * does not resolve to `false`.

()

Source from the content-addressed store, hash-verified

384 * does not resolve to `false`.
385 */
386 isActive(): boolean {
387 return this.observers.some(
388 (observer) => resolveQueryValue(observer.options.enabled, this) !== false,
389 )
390 }
391
392 /**
393 * Returns `true` if the query is disabled, meaning it will not fetch

Callers 2

isDisabledMethod · 0.95
matchQueryFunction · 0.80

Calls 1

resolveQueryValueFunction · 0.90

Tested by

no test coverage detected