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

Function destroy

packages/query-core/src/removable.ts:19–21  ·  view source on GitHub ↗

* Clears the pending garbage collection timeout, so the entry is no longer scheduled for removal. * A subclass may override this to release what it holds on to as well — `Query` also cancels any * in-flight fetch.

()

Source from the content-addressed store, hash-verified

17 * in-flight fetch.
18 */
19 destroy(): void {
20 this.clearGcTimeout()
21 }
22
23 /**
24 * Schedules the entry to be removed from its cache after `gcTime`, replacing any timeout scheduled

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected