MCPcopy Create free account
hub / github.com/reactjs/react-rails / pushHostRootContext

Function pushHostRootContext

lib/assets/react-source/development/react.js:20889–20900  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

20887 }
20888
20889 function pushHostRootContext(workInProgress) {
20890 var root = workInProgress.stateNode;
20891
20892 if (root.pendingContext) {
20893 pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
20894 } else if (root.context) {
20895 // Should always be set
20896 pushTopLevelContextObject(workInProgress, root.context, false);
20897 }
20898
20899 pushHostContainer(workInProgress, root.containerInfo);
20900 }
20901
20902 function updateHostRoot(current, workInProgress, renderExpirationTime) {
20903 pushHostRootContext(workInProgress);

Callers 2

updateHostRootFunction · 0.85
beginWorkFunction · 0.85

Calls 2

pushHostContainerFunction · 0.85

Tested by

no test coverage detected