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

Function pushHostRootContext

code/event-handlers/public/app.js:9283–9292  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

9281 }
9282
9283 function pushHostRootContext(workInProgress) {
9284 var root = workInProgress.stateNode;
9285 if (root.pendingContext) {
9286 pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
9287 } else if (root.context) {
9288 // Should always be set
9289 pushTopLevelContextObject(workInProgress, root.context, false);
9290 }
9291 pushHostContainer(workInProgress, root.containerInfo);
9292 }
9293
9294 function updateHostRoot(current, workInProgress, renderExpirationTime) {
9295 pushHostRootContext(workInProgress);

Callers 2

updateHostRootFunction · 0.70
bailoutOnLowPriorityFunction · 0.70

Calls 2

pushHostContainerFunction · 0.70

Tested by

no test coverage detected