fix comments of markUpdateLaneFromFiberToRoot (#20546)
neroneroffy committed
Feb 11, 2021 at 12:26 UTC
6cdc35972d59d08451a529f1ee29787851f0e583
2 files changed
+2
-2
packages/react-reconciler/src/ReactFiberWorkLoop.new.js
+1
-1
@@ -645,7 +645,7 @@ function markUpdateLaneFromFiberToRoot(
645
warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
646
}
647
}
648
- // Walk the parent path to the root and update the child expiration time.
648
+ // Walk the parent path to the root and update the child lanes.
649
let node = sourceFiber;
650
let parent = sourceFiber.return;
651
while (parent !== null) {
packages/react-reconciler/src/ReactFiberWorkLoop.old.js
+1
-1
@@ -645,7 +645,7 @@ function markUpdateLaneFromFiberToRoot(
645
warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber);
646
}
647
}
648
- // Walk the parent path to the root and update the child expiration time.
648
+ // Walk the parent path to the root and update the child lanes.
649
let node = sourceFiber;
650
let parent = sourceFiber.return;
651
while (parent !== null) {