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

Function pushHostRootContext

code/third-party/public/app.js:9186–9195  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

9184 }
9185
9186 function pushHostRootContext(workInProgress) {
9187 var root = workInProgress.stateNode;
9188 if (root.pendingContext) {
9189 pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
9190 } else if (root.context) {
9191 // Should always be set
9192 pushTopLevelContextObject(workInProgress, root.context, false);
9193 }
9194 pushHostContainer(workInProgress, root.containerInfo);
9195 }
9196
9197 function updateHostRoot(current, workInProgress, renderExpirationTime) {
9198 pushHostRootContext(workInProgress);

Callers 2

updateHostRootFunction · 0.70
bailoutOnLowPriorityFunction · 0.70

Calls 2

pushHostContainerFunction · 0.70

Tested by

no test coverage detected