1
0
Fork 0
Browse Source

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

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

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

@ -110,7 +110,7 @@ if ((current.flags & ForceUpdateForLegacySuspense) !== NoFlags) {
```javascript ```javascript
didReceiveUpdate = false; didReceiveUpdate = false;
// 检查 hydrate 状态 // 检查 hydrate 状态 和 是否存在 Forked flag
if (getIsHydrating() && isForkedChild(workInProgress)) { if (getIsHydrating() && isForkedChild(workInProgress)) {
var slotIndex = workInProgress.index; var slotIndex = workInProgress.index;
var numberOfForks = getForksAtLevel(); var numberOfForks = getForksAtLevel();

Loading…
Cancel
Save