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

Method destroy

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

Source from the content-addressed store, hash-verified

124 }
125
126 destroy(): void {
127 this.listeners = new Set()
128 this.#clearStaleTimeout()
129 this.#clearRefetchInterval()
130 this.#currentQuery.removeObserver(this)
131 }
132
133 setOptions(
134 options: QueryObserverOptions<

Callers 1

onUnsubscribeMethod · 0.95

Calls 3

#clearStaleTimeoutMethod · 0.95
#clearRefetchIntervalMethod · 0.95
removeObserverMethod · 0.45

Tested by

no test coverage detected