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

Method notify

packages/query-core/src/queryCache.ts:328–334  ·  view source on GitHub ↗

@internal

(event: QueryCacheNotifyEvent)

Source from the content-addressed store, hash-verified

326
327 /** @internal */
328 notify(event: QueryCacheNotifyEvent): void {
329 notifyManager.batch(() => {
330 this.listeners.forEach((listener) => {
331 listener(event)
332 })
333 })
334 }
335
336 /** @internal */
337 onFocus(): void {

Callers 12

addMethod · 0.95
removeMethod · 0.95
setOptionsMethod · 0.45
updateResultMethod · 0.45
addObserverMethod · 0.45
removeObserverMethod · 0.45
#dispatchMethod · 0.45
addObserverMethod · 0.45
removeObserverMethod · 0.45
#dispatchMethod · 0.45
setOptionsMethod · 0.45

Calls 1

listenerFunction · 0.50

Tested by

no test coverage detected