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

Function prepareKeys

packages/core/src/Controller.ts:585–591  ·  view source on GitHub ↗

* Ensure spring objects exist for each defined key, and attach the * `ctrl` to them for observation. * * The queue is expected to contain `createUpdate` results.

(ctrl: Controller<any>, queue: ControllerQueue[number][])

Source from the content-addressed store, hash-verified

583 * The queue is expected to contain `createUpdate` results.
584 */
585function prepareKeys(ctrl: Controller<any>, queue: ControllerQueue[number][]) {
586 each(queue, props => {
587 prepareSprings(ctrl.springs, props, key => {
588 return createSpring(key, ctrl)
589 })
590 })
591}

Callers 2

startMethod · 0.85
flushUpdateFunction · 0.85

Calls 3

eachFunction · 0.90
prepareSpringsFunction · 0.85
createSpringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…