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

Method onUnsubscribe

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

Source from the content-addressed store, hash-verified

103 }
104
105 protected onUnsubscribe(): void {
106 if (!this.hasListeners()) {
107 this.destroy()
108 }
109 }
110
111 shouldFetchOnReconnect(): boolean {
112 return shouldFetchOn(

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.95
hasListenersMethod · 0.80

Tested by

no test coverage detected