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

Method destroy

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

Source from the content-addressed store, hash-verified

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

Callers 1

onUnsubscribeMethod · 0.95

Calls 3

#clearStaleTimeoutMethod · 0.95
#clearRefetchIntervalMethod · 0.95
removeObserverMethod · 0.45

Tested by

no test coverage detected