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

Method #shouldScheduleTimer

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

Source from the content-addressed store, hash-verified

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

Callers 2

#updateStaleTimeoutMethod · 0.95

Calls 2

resolveQueryValueFunction · 0.90
isValidTimeoutFunction · 0.90

Tested by

no test coverage detected