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

Method onUnsubscribe

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

Source from the content-addressed store, hash-verified

38 }
39
40 protected onUnsubscribe() {
41 if (!this.hasListeners()) {
42 this.#cleanup?.()
43 this.#cleanup = undefined
44 }
45 }
46
47 setEventListener(setup: SetupFn): void {
48 this.#setup = setup

Callers

nothing calls this directly

Calls 1

hasListenersMethod · 0.80

Tested by

no test coverage detected