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

Method notify

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

@internal

(event: QueryCacheNotifyEvent)

Source from the content-addressed store, hash-verified

330
331 /** @internal */
332 notify(event: QueryCacheNotifyEvent): void {
333 notifyManager.batch(() => {
334 this.listeners.forEach((listener) => {
335 listener(event)
336 })
337 })
338 }
339
340 /** @internal */
341 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