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

Function setActiveBit

packages/core/src/SpringPhase.ts:18–21  ·  view source on GitHub ↗
(target: any, active: boolean)

Source from the content-addressed store, hash-verified

16
17/** Set the active bit of the `target` phase. */
18export const setActiveBit = (target: any, active: boolean) =>
19 active
20 ? (target[$P] |= IS_ANIMATING | HAS_ANIMATED)
21 : (target[$P] &= ~IS_ANIMATING)
22
23export const setPausedBit = (target: any, paused: boolean) =>
24 paused ? (target[$P] |= IS_PAUSED) : (target[$P] &= ~IS_PAUSED)

Callers 2

_startMethod · 0.90
_stopMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…