MCPcopy
hub / github.com/pmndrs/react-spring / flushCalls

Function flushCalls

packages/shared/src/helpers.ts:88–91  ·  view source on GitHub ↗
(
  queue: Set<T>,
  ...args: Parameters<T>
)

Source from the content-addressed store, hash-verified

86
87/** Call every function in the queue with the same arguments. */
88export const flushCalls = <T extends AnyFn>(
89 queue: Set<T>,
90 ...args: Parameters<T>
91) => flush(queue, fn => fn(...args))
92
93// For server-side rendering: https://github.com/react-spring/zustand/pull/34
94// Deno support: https://github.com/pmndrs/zustand/issues/347

Callers 4

flushUpdateFunction · 0.90
_updateMethod · 0.90
_mergeMethod · 0.90
_stopMethod · 0.90

Calls 2

fnFunction · 0.85
flushFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…