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

Function pushHostRootContext

code/dependency-injection/public/app.js:10046–10055  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

10044 }
10045
10046 function pushHostRootContext(workInProgress) {
10047 var root = workInProgress.stateNode;
10048 if (root.pendingContext) {
10049 pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
10050 } else if (root.context) {
10051 // Should always be set
10052 pushTopLevelContextObject(workInProgress, root.context, false);
10053 }
10054 pushHostContainer(workInProgress, root.containerInfo);
10055 }
10056
10057 function updateHostRoot(current, workInProgress, renderExpirationTime) {
10058 pushHostRootContext(workInProgress);

Callers 2

updateHostRootFunction · 0.70
bailoutOnLowPriorityFunction · 0.70

Calls 2

pushHostContainerFunction · 0.70

Tested by

no test coverage detected