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

Method onUnsubscribe

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

destroyMethod · 0.95

Tested by

no test coverage detected