From 27a7be030bb51c47aead7b6c8790f8d327cc5886 Mon Sep 17 00:00:00 2001 From: neroneroffy Date: Tue, 5 Jan 2021 18:02:16 +0800 Subject: [PATCH] fix comments of markUpdateLaneFromFiberToRoot --- 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 03831988e2b2b..95c92b97c1e26 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.new.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.new.js @@ -679,7 +679,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 6966472e0d16f..2757fb343aca3 100644 --- a/packages/react-reconciler/src/ReactFiberWorkLoop.old.js +++ b/packages/react-reconciler/src/ReactFiberWorkLoop.old.js @@ -679,7 +679,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) {