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

Function checkIdle

packages/core/src/Interpolation.ts:168–172  ·  view source on GitHub ↗

Return true if all values in the given set are idle or paused.

(active: Set<FluidValue>)

Source from the content-addressed store, hash-verified

166
167/** Return true if all values in the given set are idle or paused. */
168function checkIdle(active: Set<FluidValue>) {
169 // Parents can be active even when paused, so the `.every` check
170 // removes us from the frameloop if all active parents are paused.
171 return !active.size || Array.from(active).every(isIdle)
172}
173
174/** Become idle if not already idle. */
175function becomeIdle(self: Interpolation) {

Callers 2

advanceMethod · 0.85
_startMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…