Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/TanStack/query
/ onUnsubscribe
Method
onUnsubscribe
packages/query-core/src/queryObserver.ts:110–114 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
108
}
109
110
protected onUnsubscribe(): void {
111
if
(!this.hasListeners()) {
112
this.destroy()
113
}
114
}
115
116
shouldFetchOnReconnect(): boolean {
117
return
shouldFetchOn(
Callers
nothing calls this directly
Calls
2
destroy
Method · 0.95
hasListeners
Method · 0.80
Tested by
no test coverage detected