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: ... } ```