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

Function observe

packages/core/test/setup.ts:140–146  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

138 // Observe animations scheduled for next frame.
139 const values: FrameValue[] = []
140 const observe = (value: unknown) => {
141 if (value instanceof FrameValue && !value.idle) {
142 getFluidObservers(value)?.forEach(observe)
143 addFluidObserver(value, frameObserver)
144 values.push(value)
145 }
146 }
147
148 Globals.assign({
149 willAdvance: observe,

Callers

nothing calls this directly

Calls 3

getFluidObserversFunction · 0.90
addFluidObserverFunction · 0.90
forEachMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…