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

Method onUnsubscribe

packages/query-core/src/focusManager.ts:45–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 }
44
45 protected override onUnsubscribe() {
46 if (!this.hasListeners()) {
47 this.#cleanup?.()
48 this.#cleanup = undefined
49 }
50 }
51
52 /**
53 * `setEventListener` can be used to set a custom event listener that will

Callers

nothing calls this directly

Calls 1

hasListenersMethod · 0.80

Tested by

no test coverage detected