MCPcopy
hub / github.com/TanStack/query / cancel

Method cancel

packages/query-core/src/query.ts:252–256  ·  view source on GitHub ↗
(options?: CancelOptions)

Source from the content-addressed store, hash-verified

250 }
251
252 cancel(options?: CancelOptions): Promise<void> {
253 const promise = this.#retryer?.promise
254 this.#retryer?.cancel(options)
255 return promise ? promise.then(noop).catch(noop) : Promise.resolve()
256 }
257
258 destroy(): void {
259 super.destroy()

Callers 7

destroyMethod · 0.95
fetchMethod · 0.95
cancelQueriesMethod · 0.80
removeObserverMethod · 0.80
query.test.tsxFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected