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

Method destroy

packages/query-core/src/queryObserver.ts:132–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130 }
131
132 destroy(): void {
133 this.listeners = new Set()
134 this.#clearStaleTimeout()
135 this.#clearRefetchInterval()
136 this.#currentQuery.removeObserver(this)
137 }
138
139 setOptions(
140 options: QueryObserverOptions<

Callers 1

onUnsubscribeMethod · 0.95

Calls 3

#clearStaleTimeoutMethod · 0.95
#clearRefetchIntervalMethod · 0.95
removeObserverMethod · 0.45

Tested by

no test coverage detected