From 2c1cdd4fd4e265e57f8298267bdc54365c90bf2f Mon Sep 17 00:00:00 2001 From: YuJian Date: Tue, 28 Jun 2022 14:57:05 +0800 Subject: [PATCH] vault backup: 2022-06-28 14:57:05 --- .../React 的深入探索 - beginWork.md | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md b/React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md index 7cfbf75..7bc61fc 100644 --- a/React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md +++ b/React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md @@ -126,8 +126,32 @@ if (getIsHydrating() && isForkedChild(workInProgress)) { workInProgress.lanes = NoLanes; switch (workInProgress.tag) { - case IndeterminateComponent: - . + case IndeterminateComponent: ... + case LazyComponent: ... + // Function Component 处理逻辑 + case FunctionComponent: ... + // Class Component 处理逻辑 + case ClassComponent: ... + case HostRoot: ... + case HostComponent: ... + case HostText: ... + // Suspense 处理逻辑 + case SuspenseComponent: ... + case HostPortal: ... + case ForwardRef: ... + case Fragment: ... + case Mode: ... + case Profiler: ... + case ContextProvider: ... + case ContextConsumer: ... + case MemoComponent: ... + case SimpleMemoComponent: ... + case IncompleteClassComponent: ... + case SuspenseListComponent: ... + case ScopeComponent: ... + case OffscreenComponent: ... + case LegacyHiddenComponent: ... + case CacheComponent: ... } ```