MCPcopy Index your code
hub / github.com/react/react / clearTransitionsForLanes

Function clearTransitionsForLanes

packages/react-reconciler/src/ReactFiberLane.js:1251–1267  ·  view source on GitHub ↗
(root: FiberRoot, lanes: Lane | Lanes)

Source from the content-addressed store, hash-verified

1249}
1250
1251export 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
1270export function getGroupNameOfHighestPriorityLane(lanes: Lanes): string {

Callers 1

Calls 1

laneToIndexFunction · 0.85

Tested by

no test coverage detected