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

Function pushHostRootContext

code/new-context-api/public/app.js:9314–9323  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

9312 }
9313
9314 function pushHostRootContext(workInProgress) {
9315 var root = workInProgress.stateNode;
9316 if (root.pendingContext) {
9317 pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
9318 } else if (root.context) {
9319 // Should always be set
9320 pushTopLevelContextObject(workInProgress, root.context, false);
9321 }
9322 pushHostContainer(workInProgress, root.containerInfo);
9323 }
9324
9325 function updateHostRoot(current, workInProgress, renderExpirationTime) {
9326 pushHostRootContext(workInProgress);

Callers 2

updateHostRootFunction · 0.70
bailoutOnLowPriorityFunction · 0.70

Calls 2

pushHostContainerFunction · 0.70

Tested by

no test coverage detected