MCPcopy Create free account
hub / github.com/reactjs/react-rails / updatePortalComponent

Function updatePortalComponent

lib/assets/react-source/development/react.js:21899–21915  ·  view source on GitHub ↗
(current, workInProgress, renderExpirationTime)

Source from the content-addressed store, hash-verified

21897 }
21898
21899 function updatePortalComponent(current, workInProgress, renderExpirationTime) {
21900 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
21901 var nextChildren = workInProgress.pendingProps;
21902
21903 if (current === null) {
21904 // Portals are special because we don't append the children during mount
21905 // but at commit. Therefore we need to track insertions which the normal
21906 // flow doesn't do during mount. This doesn't happen at the root because
21907 // the root always starts with a "current" with a null child.
21908 // TODO: Consider unifying this with how the root works.
21909 workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderExpirationTime);
21910 } else {
21911 reconcileChildren(current, workInProgress, nextChildren, renderExpirationTime);
21912 }
21913
21914 return workInProgress.child;
21915 }
21916
21917 function updateContextProvider(current, workInProgress, renderExpirationTime) {
21918 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