remove console.error in ReactFiberLane (#24319)

We changed the implementation of root.transitionLanes so that, if there is no transitions for a given lane, we use null instead of an array. This means that this error is no longer valid, so we are removing it
This commit is contained in:
Luna Ruan
2022-04-08 15:33:52 -07:00
committed by GitHub
parent ec52a5698e
commit 60e63b960f
2 changed files with 0 additions and 14 deletions
@@ -859,13 +859,6 @@ export function clearTransitionsForLanes(root: FiberRoot, lanes: Lane | Lanes) {
const transitions = root.transitionLanes[index];
if (transitions !== null) {
root.transitionLanes[index] = null;
} else {
if (__DEV__) {
console.error(
'React Bug: transition lanes accessed out of bounds index: %s',
index.toString(),
);
}
}
lanes &= ~lane;
@@ -859,13 +859,6 @@ export function clearTransitionsForLanes(root: FiberRoot, lanes: Lane | Lanes) {
const transitions = root.transitionLanes[index];
if (transitions !== null) {
root.transitionLanes[index] = null;
} else {
if (__DEV__) {
console.error(
'React Bug: transition lanes accessed out of bounds index: %s',
index.toString(),
);
}
}
lanes &= ~lane;