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

Function flushUpdateQueue

packages/core/src/Controller.ts:328–335  ·  view source on GitHub ↗
(
  ctrl: Controller<any>,
  queue: ControllerQueue
)

Source from the content-addressed store, hash-verified

326 * Warning: Props might be mutated.
327 */
328export function flushUpdateQueue(
329 ctrl: Controller<any>,
330 queue: ControllerQueue
331) {
332 return Promise.all(queue.map(props => flushUpdate(ctrl, props))).then(
333 results => getCombinedResult(ctrl, results)
334 )
335}
336
337/**
338 * Warning: Props might be mutated.

Callers 2

flushFunction · 0.90
startMethod · 0.85

Calls 2

getCombinedResultFunction · 0.90
flushUpdateFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…