mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user