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

Method cancel

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

Source from the content-addressed store, hash-verified

251 }
252
253 cancel(options?: CancelOptions): Promise<void> {
254 const promise = this.#retryer?.promise
255 this.#retryer?.cancel(options)
256 return promise ? promise.then(noop).catch(noop) : Promise.resolve()
257 }
258
259 destroy(): void {
260 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