MCPcopy
hub / github.com/TanStack/query / isDisabled

Method isDisabled

packages/query-core/src/query.ts:275–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273 }
274
275 isDisabled(): boolean {
276 if (this.getObserversCount() > 0) {
277 return !this.isActive()
278 }
279 // if a query has no observers, it should still be considered disabled if it never attempted a fetch
280 return (
281 this.options.queryFn === skipToken ||
282 this.state.dataUpdateCount + this.state.errorUpdateCount === 0
283 )
284 }
285
286 isStatic(): boolean {
287 if (this.getObserversCount() > 0) {

Callers 3

ContentViewFunction · 0.80
QueryRowFunction · 0.80
refetchQueriesMethod · 0.80

Calls 2

getObserversCountMethod · 0.95
isActiveMethod · 0.95

Tested by

no test coverage detected