MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / pushHostRootContext

Function pushHostRootContext

code/styling/public/app.js:9953–9962  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

9951 }
9952
9953 function pushHostRootContext(workInProgress) {
9954 var root = workInProgress.stateNode;
9955 if (root.pendingContext) {
9956 pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
9957 } else if (root.context) {
9958 // Should always be set
9959 pushTopLevelContextObject(workInProgress, root.context, false);
9960 }
9961 pushHostContainer(workInProgress, root.containerInfo);
9962 }
9963
9964 function updateHostRoot(current, workInProgress, renderExpirationTime) {
9965 pushHostRootContext(workInProgress);

Callers 2

updateHostRootFunction · 0.70
bailoutOnLowPriorityFunction · 0.70

Calls 2

pushHostContainerFunction · 0.70

Tested by

no test coverage detected