MCPcopy Create free account
hub / github.com/SvelteStack/svelte-query / remove

Method remove

src/queryCore/core/mutationCache.ts:72–76  ·  view source on GitHub ↗
(mutation: Mutation<any, any, any, any>)

Source from the content-addressed store, hash-verified

70 }
71
72 remove(mutation: Mutation<any, any, any, any>): void {
73 this.mutations = this.mutations.filter(x => x !== mutation)
74 mutation.cancel()
75 this.notify(mutation)
76 }
77
78 clear(): void {
79 notifyManager.batch(() => {

Callers 1

clearMethod · 0.95

Calls 2

notifyMethod · 0.95
cancelMethod · 0.65

Tested by

no test coverage detected