MCPcopy
hub / github.com/TanStack/query / notify

Method notify

packages/query-core/src/queryCache.ts:200–206  ·  view source on GitHub ↗
(event: QueryCacheNotifyEvent)

Source from the content-addressed store, hash-verified

198 }
199
200 notify(event: QueryCacheNotifyEvent): void {
201 notifyManager.batch(() => {
202 this.listeners.forEach((listener) => {
203 listener(event)
204 })
205 })
206 }
207
208 onFocus(): void {
209 notifyManager.batch(() => {

Callers 11

addMethod · 0.95
removeMethod · 0.95
setOptionsMethod · 0.45
#notifyMethod · 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