MCPcopy
hub / github.com/plotly/dash / pushHostRootContext

Function pushHostRootContext

dash/deps/react-dom@18.2.0.js:19806–19817  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

19804 }
19805
19806 function pushHostRootContext(workInProgress) {
19807 var root = workInProgress.stateNode;
19808
19809 if (root.pendingContext) {
19810 pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
19811 } else if (root.context) {
19812 // Should always be set
19813 pushTopLevelContextObject(workInProgress, root.context, false);
19814 }
19815
19816 pushHostContainer(workInProgress, root.containerInfo);
19817 }
19818
19819 function updateHostRoot(current, workInProgress, renderLanes) {
19820 pushHostRootContext(workInProgress);

Callers 2

updateHostRootFunction · 0.70

Calls 2

pushHostContainerFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…