MCPcopy Create free account
hub / github.com/TanStack/query / #shouldScheduleTimer

Method #shouldScheduleTimer

packages/query-core/src/queryObserver.ts:372–378  ·  view source on GitHub ↗
(timeout: unknown)

Source from the content-addressed store, hash-verified

370 }
371
372 #shouldScheduleTimer(timeout: unknown): timeout is number {
373 return (
374 !environmentManager.isServer() &&
375 resolveQueryBoolean(this.options.enabled, this.#currentQuery) !== false &&
376 isValidTimeout(timeout)
377 )
378 }
379
380 #updateStaleTimeout(): void {
381 this.#clearStaleTimeout()

Callers 2

#updateStaleTimeoutMethod · 0.95

Calls 2

resolveQueryBooleanFunction · 0.90
isValidTimeoutFunction · 0.90

Tested by

no test coverage detected