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

Method _detach

packages/core/src/Interpolation.ts:123–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121
122 // Stop observing our sources once we have no observers.
123 protected _detach() {
124 each(toArray(this.source), source => {
125 if (hasFluidValue(source)) {
126 removeFluidObserver(source, this)
127 }
128 })
129 this._active.clear()
130 becomeIdle(this)
131 }
132
133 /** @internal */
134 eventObserved(event: FrameValue.Event) {

Callers

nothing calls this directly

Calls 5

eachFunction · 0.90
toArrayFunction · 0.90
hasFluidValueFunction · 0.90
removeFluidObserverFunction · 0.90
becomeIdleFunction · 0.85

Tested by

no test coverage detected