MCPcopy
hub / github.com/TanStack/query / onUnsubscribe

Method onUnsubscribe

packages/query-core/src/queriesObserver.ts:74–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 protected onUnsubscribe(): void {
75 if (!this.listeners.size) {
76 this.destroy()
77 }
78 }
79
80 destroy(): void {
81 this.listeners = new Set()

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.95

Tested by

no test coverage detected