|
|
@ -106,7 +106,16 @@ if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) { |
|
|
|
|
|
|
|
|
|
|
|
### current 为空 |
|
|
|
### current 为空 |
|
|
|
|
|
|
|
|
|
|
|
didReceiveUpdate 赋值为 false |
|
|
|
首先 didReceiveUpdate 会被赋值为 false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```javascript |
|
|
|
|
|
|
|
didReceiveUpdate = false; |
|
|
|
|
|
|
|
if (getIsHydrating() && isForkedChild(workInProgress)) { |
|
|
|
|
|
|
|
var slotIndex = workInProgress.index; |
|
|
|
|
|
|
|
var numberOfForks = getForksAtLevel(); |
|
|
|
|
|
|
|
pushTreeId(workInProgress, numberOfForks, slotIndex); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
## 正式 beginWork 阶段 |
|
|
|
## 正式 beginWork 阶段 |
|
|
|
|
|
|
|
|
|
|
|