1
0
Fork 0
Browse Source

vault backup: 2022-06-28 14:57:05

master
YuJian 2 years ago
parent
commit
2c1cdd4fd4
  1. 28
      React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md

28
React 的深入探索/React 的流程解析 - Fiber 递归/React 的深入探索 - beginWork.md

@ -126,8 +126,32 @@ if (getIsHydrating() && isForkedChild(workInProgress)) { @@ -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: ...
}
```

Loading…
Cancel
Save