|
|
|
@ -23,6 +23,8 @@ flushRenderPhaseStrictModeWarningsInDEV();
@@ -23,6 +23,8 @@ flushRenderPhaseStrictModeWarningsInDEV();
|
|
|
|
|
中间跳过一段逻辑无关和 performance 监控代码,进入对 Fiber Tree 和 effecrList 的一系列初始化 |
|
|
|
|
|
|
|
|
|
```javascript |
|
|
|
|
...... |
|
|
|
|
|
|
|
|
|
root.finishedWork = null; |
|
|
|
|
root.finishedLanes = NoLanes; |
|
|
|
|
|
|
|
|
@ -52,4 +54,8 @@ if (root === workInProgressRoot) {
@@ -52,4 +54,8 @@ if (root === workInProgressRoot) {
|
|
|
|
|
workInProgress = null; |
|
|
|
|
workInProgressRootRenderLanes = NoLanes; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 以下省略 |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
最终走到 commitRootImpl 的第二个循环 |