1
0
Fork 0
Browse Source

vault backup: 2022-06-28 11:48:53

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

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

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

Loading…
Cancel
Save