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

Method destroy

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

Source from the content-addressed store, hash-verified

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

Callers 1

onUnsubscribeMethod · 0.95

Calls 3

#clearStaleTimeoutMethod · 0.95
#clearRefetchIntervalMethod · 0.95
removeObserverMethod · 0.45

Tested by

no test coverage detected