MCPcopy Create free account
hub / github.com/plotly/dash / pushMaterializedTreeId

Function pushMaterializedTreeId

dash/deps/react-dom@18.3.1.js:12181–12193  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

12179 }
12180 }
12181 function pushMaterializedTreeId(workInProgress) {
12182 warnIfNotHydrating(); // This component materialized an id. This will affect any ids that appear
12183 // in its children.
12184
12185 var returnFiber = workInProgress.return;
12186
12187 if (returnFiber !== null) {
12188 var numberOfForks = 1;
12189 var slotIndex = 0;
12190 pushTreeFork(workInProgress, numberOfForks);
12191 pushTreeId(workInProgress, numberOfForks, slotIndex);
12192 }
12193 }
12194
12195 function getBitLength(number) {
12196 return 32 - clz32(number);

Callers 3

updateForwardRefFunction · 0.70
updateFunctionComponentFunction · 0.70

Calls 3

warnIfNotHydratingFunction · 0.70
pushTreeForkFunction · 0.70
pushTreeIdFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…