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

Function schedule

packages/query-core/src/notifyManager.ts:28–36  ·  view source on GitHub ↗
(callback: NotifyCallback)

Source from the content-addressed store, hash-verified

26 let scheduleFn = defaultScheduler
27
28 const schedule = (callback: NotifyCallback): void => {
29 if (transactions) {
30 queue.push(callback)
31 } else {
32 scheduleFn(() => {
33 notifyFn(callback)
34 })
35 }
36 }
37 const flush = (): void => {
38 const originalQueue = queue
39 queue = []

Callers 1

createNotifyManagerFunction · 0.85

Calls 1

notifyFnFunction · 0.85

Tested by

no test coverage detected