( root: FiberRoot, suspendedLanes: Lanes, spawnedLane: Lane, didAttemptEntireTree: boolean, )
| 1714 | } |
| 1715 | |
| 1716 | function markRootSuspended( |
| 1717 | root: FiberRoot, |
| 1718 | suspendedLanes: Lanes, |
| 1719 | spawnedLane: Lane, |
| 1720 | didAttemptEntireTree: boolean, |
| 1721 | ) { |
| 1722 | // When suspending, we should always exclude lanes that were pinged or (more |
| 1723 | // rarely, since we try to avoid it) updated during the render phase. |
| 1724 | suspendedLanes = removeLanes(suspendedLanes, workInProgressRootPingedLanes); |
| 1725 | suspendedLanes = removeLanes( |
| 1726 | suspendedLanes, |
| 1727 | workInProgressRootInterleavedUpdatedLanes, |
| 1728 | ); |
| 1729 | _markRootSuspended(root, suspendedLanes, spawnedLane, didAttemptEntireTree); |
| 1730 | } |
| 1731 | |
| 1732 | export function flushRoot(root: FiberRoot, lanes: Lanes) { |
| 1733 | if (lanes !== NoLanes) { |
nothing calls this directly
no test coverage detected