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

Method #shouldScheduleTimer

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

Source from the content-addressed store, hash-verified

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

Callers 2

#updateStaleTimeoutMethod · 0.95

Calls 2

resolveQueryValueFunction · 0.90
isValidTimeoutFunction · 0.90

Tested by

no test coverage detected