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

Method notify

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

Source from the content-addressed store, hash-verified

102 }
103
104 notify(mutation?: Mutation<any, any, any, any>) {
105 notifyManager.batch(() => {
106 this.listeners.forEach(listener => {
107 listener(mutation)
108 })
109 })
110 }
111
112 onFocus(): void {
113 this.resumePausedMutations()

Callers 2

addMethod · 0.95
removeMethod · 0.95

Calls 1

batchMethod · 0.80

Tested by

no test coverage detected