MCPcopy Create free account
hub / github.com/microsoft/SandDance / updatePortalComponent

Function updatePortalComponent

docs/external/js/react-dom.development.js:18339–18355  ·  view source on GitHub ↗
(current, workInProgress, renderExpirationTime)

Source from the content-addressed store, hash-verified

18337 }
18338
18339 function updatePortalComponent(current, workInProgress, renderExpirationTime) {
18340 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
18341 var nextChildren = workInProgress.pendingProps;
18342
18343 if (current === null) {
18344 // Portals are special because we don't append the children during mount
18345 // but at commit. Therefore we need to track insertions which the normal
18346 // flow doesn't do during mount. This doesn't happen at the root because
18347 // the root always starts with a "current" with a null child.
18348 // TODO: Consider unifying this with how the root works.
18349 workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
18350 } else {
18351 reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
18352 }
18353
18354 return workInProgress.child;
18355 }
18356
18357 function updateContextProvider(current, workInProgress, renderExpirationTime) {
18358 var providerType = workInProgress.type;

Callers 1

beginWorkFunction · 0.85

Calls 3

pushHostContainerFunction · 0.85
reconcileChildFibersFunction · 0.85
reconcileChildrenFunction · 0.85

Tested by

no test coverage detected