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

Function pushHostRootContext

code/communication/public/app.js:9988–9997  ·  view source on GitHub ↗
(workInProgress)

Source from the content-addressed store, hash-verified

9986 }
9987
9988 function pushHostRootContext(workInProgress) {
9989 var root = workInProgress.stateNode;
9990 if (root.pendingContext) {
9991 pushTopLevelContextObject(workInProgress, root.pendingContext, root.pendingContext !== root.context);
9992 } else if (root.context) {
9993 // Should always be set
9994 pushTopLevelContextObject(workInProgress, root.context, false);
9995 }
9996 pushHostContainer(workInProgress, root.containerInfo);
9997 }
9998
9999 function updateHostRoot(current, workInProgress, renderExpirationTime) {
10000 pushHostRootContext(workInProgress);

Callers 2

updateHostRootFunction · 0.70
bailoutOnLowPriorityFunction · 0.70

Calls 2

pushHostContainerFunction · 0.70

Tested by

no test coverage detected