MCPcopy Index your code
hub / github.com/TanStack/query / onUnsubscribe

Method onUnsubscribe

packages/query-core/src/mutationObserver.ts:96–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 }
95
96 protected onUnsubscribe(): void {
97 if (!this.hasListeners()) {
98 this.#currentMutation?.removeObserver(this)
99 }
100 }
101
102 onMutationUpdate(
103 action: Action<TData, TError, TVariables, TOnMutateResult>,

Callers

nothing calls this directly

Calls 2

hasListenersMethod · 0.80
removeObserverMethod · 0.45

Tested by

no test coverage detected