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

Function flush

packages/query-core/src/notifyManager.ts:46–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 }
45 }
46 const flush = (): void => {
47 const originalQueue = queue
48 queue = []
49 if (originalQueue.length) {
50 scheduleFn(() => {
51 batchNotifyFn(() => {
52 originalQueue.forEach((callback) => {
53 notifyFn(callback)
54 })
55 })
56 })
57 }
58 }
59
60 return {
61 /**

Callers 1

createNotifyManagerFunction · 0.70

Calls 2

batchNotifyFnFunction · 0.85
notifyFnFunction · 0.85

Tested by

no test coverage detected