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

Method #shouldScheduleTimer

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

Source from the content-addressed store, hash-verified

499 }
500
501 #shouldScheduleTimer(timeout: unknown): timeout is number {
502 return (
503 !isServerEnvironment() &&
504 resolveQueryValue(this.options.enabled, this.#currentQuery) !== false &&
505 isValidTimeout(timeout)
506 )
507 }
508
509 #updateStaleTimeout(): void {
510 this.#clearStaleTimeout()

Callers 2

#updateStaleTimeoutMethod · 0.95

Calls 2

resolveQueryValueFunction · 0.90
isValidTimeoutFunction · 0.90

Tested by

no test coverage detected