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

Function schedule

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

Source from the content-addressed store, hash-verified

35 let scheduleFn = defaultScheduler
36
37 const schedule = (callback: NotifyCallback): void => {
38 if (transactions) {
39 queue.push(callback)
40 } else {
41 scheduleFn(() => {
42 notifyFn(callback)
43 })
44 }
45 }
46 const flush = (): void => {
47 const originalQueue = queue
48 queue = []

Callers 2

notifyFunction · 0.85
createNotifyManagerFunction · 0.85

Calls 1

notifyFnFunction · 0.85

Tested by

no test coverage detected