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