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

Method destroy

packages/query-core/src/query.ts:441–445  ·  view source on GitHub ↗

* Clears the query's garbage collection timeout and silently cancels any * in-flight fetch. Called by `QueryCache` when the query is removed from * the cache. * @see Query#cancel

()

Source from the content-addressed store, hash-verified

439 * @see {@link Query#cancel}
440 */
441 override destroy(): void {
442 super.destroy()
443
444 this.cancel({ silent: true })
445 }
446
447 /**
448 * The state the query was created with.

Callers 15

resetMethod · 0.95
destroyFunction · 0.45
createQueryControllerFunction · 0.45
createQueriesControllerFunction · 0.45
createMutationControllerFunction · 0.45
useMutationStateFunction · 0.45
useIsMutatingFunction · 0.45
useIsFetchingFunction · 0.45

Calls 1

cancelMethod · 0.95

Tested by 1

renderFunction · 0.36