MCPcopy Create free account
hub / github.com/TanStack/query / notify

Method notify

packages/query-core/src/mutationCache.ts:346–352  ·  view source on GitHub ↗

* Notifies every cache listener of an event, in one batch. * @internal * @param event - The event passed to every listener.

(event: MutationCacheNotifyEvent)

Source from the content-addressed store, hash-verified

344 * @param event - The event passed to every listener.
345 */
346 notify(event: MutationCacheNotifyEvent) {
347 notifyManager.batch(() => {
348 this.listeners.forEach((listener) => {
349 listener(event)
350 })
351 })
352 }
353
354 /**
355 * Continues every paused mutation, e.g. when the app comes back online.

Callers 3

addMethod · 0.95
removeMethod · 0.95
clearMethod · 0.95

Calls 1

listenerFunction · 0.50

Tested by

no test coverage detected