From 962a3caa3c114a3973aaf504b41657942ed9abbf Mon Sep 17 00:00:00 2001 From: YuJian Date: Tue, 28 Jun 2022 10:23:53 +0800 Subject: [PATCH] vault backup: 2022-06-28 10:23:53 --- .../React 的深入探索 - beginWork.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md b/React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md index 14006bd..ea61492 100644 --- a/React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md +++ b/React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md @@ -65,6 +65,13 @@ if ( 如果判断条件为 false,会进入后续判断逻辑 +```javascript +var hasScheduledUpdateOrContext = checkScheduledUpdateOrContext(current, renderLanes); +if ( + !hasScheduledUpdateOrContext && + (workInProgress.flags & DidCapture) === NoFlags +``` + ### current 为空 didReceiveUpdate 赋值为 false