MCPcopy Create free account
hub / github.com/TanStack/query / clearInterval

Method clearInterval

packages/query-core/src/timeoutManager.ts:240–242  ·  view source on GitHub ↗

* `clearInterval` can be used to cancel an interval, like the global * `clearInterval` function. It should be called with an interval ID * returned by `setInterval`. * @param intervalId - The timer ID returned by `setInterval`, or `undefined`. * @example * ```ts * import { timeoutM

(intervalId: ManagedTimerId | undefined)

Source from the content-addressed store, hash-verified

238 * ```
239 */
240 clearInterval(intervalId: ManagedTimerId | undefined): void {
241 this.#provider.clearInterval(intervalId)
242 }
243}
244
245/**

Callers 2

#clearRefetchIntervalMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected