Function
setActiveBit
(target: any, active: boolean)
Source from the content-addressed store, hash-verified
| 16 | |
| 17 | /** Set the active bit of the `target` phase. */ |
| 18 | export const setActiveBit = (target: any, active: boolean) => |
| 19 | active |
| 20 | ? (target[$P] |= IS_ANIMATING | HAS_ANIMATED) |
| 21 | : (target[$P] &= ~IS_ANIMATING) |
| 22 | |
| 23 | export const setPausedBit = (target: any, paused: boolean) => |
| 24 | paused ? (target[$P] |= IS_PAUSED) : (target[$P] &= ~IS_PAUSED) |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…