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

Method observerAdded

targets/web/src/AnimatedStyle.ts:151–159  ·  view source on GitHub ↗
(count: number)

Source from the content-addressed store, hash-verified

149
150 // Start observing our inputs once we have an observer.
151 protected observerAdded(count: number) {
152 if (count == 1)
153 each(this.inputs, input =>
154 each(
155 input,
156 value => hasFluidValue(value) && addFluidObserver(value, this)
157 )
158 )
159 }
160
161 // Stop observing our inputs once we have no observers.
162 protected observerRemoved(count: number) {

Callers 1

addFluidObserverFunction · 0.80

Calls 3

eachFunction · 0.90
hasFluidValueFunction · 0.90
addFluidObserverFunction · 0.90

Tested by

no test coverage detected