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

Method onUnsubscribe

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

Source from the content-addressed store, hash-verified

102 }
103
104 protected onUnsubscribe(): void {
105 if (!this.hasListeners()) {
106 this.#currentMutation?.removeObserver(this)
107 }
108 }
109
110 onMutationUpdate(
111 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