MCPcopy Create free account
hub / github.com/BetaSu/big-react / markUpdateLaneFromFiberToRoot

Function markUpdateLaneFromFiberToRoot

packages/react-reconciler/src/workLoop.ts:153–170  ·  view source on GitHub ↗
(fiber: FiberNode, lane: Lane)

Source from the content-addressed store, hash-verified

151}
152
153export function markUpdateLaneFromFiberToRoot(fiber: FiberNode, lane: Lane) {
154 let node = fiber;
155 let parent = node.return;
156 while (parent !== null) {
157 parent.childLanes = mergeLanes(parent.childLanes, lane);
158 const alternate = parent.alternate;
159 if (alternate !== null) {
160 alternate.childLanes = mergeLanes(alternate.childLanes, lane);
161 }
162
163 node = parent;
164 parent = node.return;
165 }
166 if (node.tag === HostRoot) {
167 return node.stateNode;
168 }
169 return null;
170}
171
172function performConcurrentWorkOnRoot(
173 root: FiberRootNode,

Callers 1

scheduleUpdateOnFiberFunction · 0.85

Calls 1

mergeLanesFunction · 0.90

Tested by

no test coverage detected