|
|
@ -28,4 +28,19 @@ root.finishedLanes = NoLanes; |
|
|
|
|
|
|
|
|
|
|
|
root.callbackNode = null; |
|
|
|
root.callbackNode = null; |
|
|
|
root.callbackPriority = NoLane; |
|
|
|
root.callbackPriority = NoLane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 内部位运算 |
|
|
|
|
|
|
|
var remainingLanes = mergeLanes( |
|
|
|
|
|
|
|
finishedWork.lanes, |
|
|
|
|
|
|
|
finishedWork.childLanes |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 内部也是位运算 |
|
|
|
|
|
|
|
markRootFinished(root, remainingLanes); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (root === workInProgressRoot) { |
|
|
|
|
|
|
|
workInProgressRoot = null; |
|
|
|
|
|
|
|
workInProgress = null; |
|
|
|
|
|
|
|
workInProgressRootRenderLanes = NoLanes; |
|
|
|
|
|
|
|
} |
|
|
|
``` |
|
|
|
``` |