MCPcopy Index your code
hub / github.com/react/react / markHiddenUpdate

Function markHiddenUpdate

packages/react-reconciler/src/ReactFiberLane.js:1070–1084  ·  view source on GitHub ↗
(
  root: FiberRoot,
  update: ConcurrentUpdate,
  lane: Lane,
)

Source from the content-addressed store, hash-verified

1068}
1069
1070export function markHiddenUpdate(
1071 root: FiberRoot,
1072 update: ConcurrentUpdate,
1073 lane: Lane,
1074) {
1075 const index = laneToIndex(lane);
1076 const hiddenUpdates = root.hiddenUpdates;
1077 const hiddenUpdatesForLane = hiddenUpdates[index];
1078 if (hiddenUpdatesForLane === null) {
1079 hiddenUpdates[index] = [update];
1080 } else {
1081 hiddenUpdatesForLane.push(update);
1082 }
1083 update.lane = lane | OffscreenLane;
1084}
1085
1086export function getBumpedLaneForHydration(
1087 root: FiberRoot,

Callers 1

Calls 2

laneToIndexFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected