(root: FiberRoot, lanes: Lane | Lanes)
| 1249 | } |
| 1250 | |
| 1251 | export function clearTransitionsForLanes(root: FiberRoot, lanes: Lane | Lanes) { |
| 1252 | if (!enableTransitionTracing) { |
| 1253 | return; |
| 1254 | } |
| 1255 | |
| 1256 | while (lanes > 0) { |
| 1257 | const index = laneToIndex(lanes); |
| 1258 | const lane = 1 << index; |
| 1259 | |
| 1260 | const transitions = root.transitionLanes[index]; |
| 1261 | if (transitions !== null) { |
| 1262 | root.transitionLanes[index] = null; |
| 1263 | } |
| 1264 | |
| 1265 | lanes &= ~lane; |
| 1266 | } |
| 1267 | } |
| 1268 | |
| 1269 | // Used to name the Performance Track |
| 1270 | export function getGroupNameOfHighestPriorityLane(lanes: Lanes): string { |
no test coverage detected