From 6fefa70a136f58700509cbb84e3e856f62f5a64a Mon Sep 17 00:00:00 2001 From: YuJian Date: Tue, 26 Apr 2022 15:52:42 +0800 Subject: [PATCH] vault backup: 2022-04-26 15:52:42 --- .../React 的流程解析 - commit阶段.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/React 的源码深入/React 的流程解析 - commit 阶段/React 的流程解析 - commit阶段.md b/React 的源码深入/React 的流程解析 - commit 阶段/React 的流程解析 - commit阶段.md index 911e896..24d4c90 100644 --- a/React 的源码深入/React 的流程解析 - commit 阶段/React 的流程解析 - commit阶段.md +++ b/React 的源码深入/React 的流程解析 - commit 阶段/React 的流程解析 - commit阶段.md @@ -20,3 +20,12 @@ do { flushRenderPhaseStrictModeWarningsInDEV(); ``` +中间跳过一段逻辑无关和 performance 监控代码,进入对 Fiber Tree 属性的一系列初始化 + +```javascript +root.finishedWork = null; +root.finishedLanes = NoLanes; + +root.callbackNode = null; +root.callbackPriority = NoLane; +``` \ No newline at end of file