From 25d15011142c75bd8baa5ce612eac1490b08728d Mon Sep 17 00:00:00 2001 From: neroneroffy Date: Thu, 11 Feb 2021 12:26:26 +0800 Subject: [PATCH] fix comments of markUpdateLaneFromFiberToRoot (#20546) --- packages/react-reconciler/src/ReactFiberWorkLoop.new.js | 2 +- packages/react-reconciler/src/ReactFiberWorkLoop.old.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js index 715e9bd6abcba..b21e951cbc857 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js @@ -645,7 +645,7 @@ function markUpdateLaneFromFiberToRoot( warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); } } - // Walk the parent path to the root and update the child expiration time. + // Walk the parent path to the root and update the child lanes. let node = sourceFiber; let parent = sourceFiber.return; while (parent !== null) { diff --git a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js index c8eb6a08eeba3..c700acc4efe54 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js @@ -645,7 +645,7 @@ function markUpdateLaneFromFiberToRoot( warnAboutUpdateOnNotYetMountedFiberInDEV(sourceFiber); } } - // Walk the parent path to the root and update the child expiration time. + // Walk the parent path to the root and update the child lanes. let node = sourceFiber; let parent = sourceFiber.return; while (parent !== null) {