Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SvelteStack/svelte-query
/ onUnsubscribe
Method
onUnsubscribe
src/queryCore/core/queryObserver.ts:119–123 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
117
}
118
119
protected onUnsubscribe(): void {
120
if
(!this.listeners.length) {
121
this.destroy()
122
}
123
}
124
125
shouldFetchOnReconnect(): boolean {
126
return
shouldFetchOnReconnect(this.currentQuery, this.options)
Callers
nothing calls this directly
Calls
1
destroy
Method · 0.95
Tested by
no test coverage detected