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

Function createSpring

packages/core/src/Controller.ts:551–558  ·  view source on GitHub ↗
(key: string, observer?: FluidObserver<FrameValue.Event>)

Source from the content-addressed store, hash-verified

549}
550
551function createSpring(key: string, observer?: FluidObserver<FrameValue.Event>) {
552 const spring = new SpringValue()
553 spring.key = key
554 if (observer) {
555 addFluidObserver(spring, observer)
556 }
557 return spring
558}
559
560/**
561 * Ensure spring objects exist for each defined key.

Callers 2

getSpringsFunction · 0.85
prepareKeysFunction · 0.85

Calls 1

addFluidObserverFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…