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

Method add

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

Source from the content-addressed store, hash-verified

65 }
66
67 add(mutation: Mutation<any, any, any, any>): void {
68 this.mutations.push(mutation)
69 this.notify(mutation)
70 }
71
72 remove(mutation: Mutation<any, any, any, any>): void {
73 this.mutations = this.mutations.filter(x => x !== mutation)

Callers 1

buildMethod · 0.95

Calls 1

notifyMethod · 0.95

Tested by

no test coverage detected