MCPcopy
hub / github.com/facebook/react / markRootSuspended

Function markRootSuspended

packages/react-reconciler/src/ReactFiberWorkLoop.js:1716–1730  ·  view source on GitHub ↗
(
  root: FiberRoot,
  suspendedLanes: Lanes,
  spawnedLane: Lane,
  didAttemptEntireTree: boolean,
)

Source from the content-addressed store, hash-verified

1714}
1715
1716function 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
1732export function flushRoot(root: FiberRoot, lanes: Lanes) {
1733 if (lanes !== NoLanes) {

Callers

nothing calls this directly

Calls 1

removeLanesFunction · 0.90

Tested by

no test coverage detected