Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SvelteStack/svelte-query
/ clear
Method
clear
src/queryCore/core/mutationCache.ts:78–84 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
76
}
77
78
clear(): void {
79
notifyManager.batch(() => {
80
this.mutations.forEach(mutation => {
81
this.remove(mutation)
82
})
83
})
84
}
85
86
getAll(): Mutation[] {
87
return
this.mutations
Callers
nothing calls this directly
Calls
2
remove
Method · 0.95
batch
Method · 0.80
Tested by
no test coverage detected