Skip to content

Commit 60e63b9

Browse files
authored
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
1 parent ec52a56 commit 60e63b9

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

packages/react-reconciler/src/ReactFiberLane.new.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -859,13 +859,6 @@ export function clearTransitionsForLanes(root: FiberRoot, lanes: Lane | Lanes) {
859859
const transitions = root.transitionLanes[index];
860860
if (transitions !== null) {
861861
root.transitionLanes[index] = null;
862-
} else {
863-
if (__DEV__) {
864-
console.error(
865-
'React Bug: transition lanes accessed out of bounds index: %s',
866-
index.toString(),
867-
);
868-
}
869862
}
870863

871864
lanes &= ~lane;

packages/react-reconciler/src/ReactFiberLane.old.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -859,13 +859,6 @@ export function clearTransitionsForLanes(root: FiberRoot, lanes: Lane | Lanes) {
859859
const transitions = root.transitionLanes[index];
860860
if (transitions !== null) {
861861
root.transitionLanes[index] = null;
862-
} else {
863-
if (__DEV__) {
864-
console.error(
865-
'React Bug: transition lanes accessed out of bounds index: %s',
866-
index.toString(),
867-
);
868-
}
869862
}
870863

871864
lanes &= ~lane;

0 commit comments

Comments
 (0)