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

Function becomeIdle

packages/core/src/Interpolation.ts:175–188  ·  view source on GitHub ↗

Become idle if not already idle.

(self: Interpolation)

Source from the content-addressed store, hash-verified

173
174/** Become idle if not already idle. */
175function becomeIdle(self: Interpolation) {
176 if (!self.idle) {
177 self.idle = true
178
179 each(getPayload(self)!, node => {
180 node.done = true
181 })
182
183 callFluidObservers(self, {
184 type: 'idle',
185 parent: self,
186 })
187 }
188}

Callers 3

advanceMethod · 0.85
_startMethod · 0.85
_detachMethod · 0.85

Calls 3

eachFunction · 0.90
getPayloadFunction · 0.90
callFluidObserversFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…