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

Method onUnsubscribe

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

Source from the content-addressed store, hash-verified

107 }
108
109 protected onUnsubscribe(): void {
110 if (!this.hasListeners()) {
111 this.destroy()
112 }
113 }
114
115 shouldFetchOnReconnect(): boolean {
116 return shouldFetchOn(

Callers

nothing calls this directly

Calls 2

destroyMethod · 0.95
hasListenersMethod · 0.80

Tested by

no test coverage detected