Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ onUnsubscribe
Method
onUnsubscribe
packages/query-core/src/mutationObserver.ts:135–139 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
133
}
134
135
protected onUnsubscribe(): void {
136
if
(!this.hasListeners()) {
137
this.#currentMutation?.removeObserver(this)
138
}
139
}
140
141
/** @internal */
142
onMutationUpdate(
Callers
nothing calls this directly
Calls
2
hasListeners
Method · 0.80
removeObserver
Method · 0.45
Tested by
no test coverage detected