MCPcopy Create free account
hub / github.com/plotly/dash / updatePortalComponent

Function updatePortalComponent

dash/deps/react-dom@18.3.1.js:21140–21156  ·  view source on GitHub ↗
(current, workInProgress, renderLanes)

Source from the content-addressed store, hash-verified

21138 }
21139
21140 function updatePortalComponent(current, workInProgress, renderLanes) {
21141 pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
21142 var nextChildren = workInProgress.pendingProps;
21143
21144 if (current === null) {
21145 // Portals are special because we don't append the children during mount
21146 // but at commit. Therefore we need to track insertions which the normal
21147 // flow doesn't do during mount. This doesn't happen at the root because
21148 // the root always starts with a "current" with a null child.
21149 // TODO: Consider unifying this with how the root works.
21150 workInProgress.child = reconcileChildFibers(workInProgress, null, nextChildren, renderLanes);
21151 } else {
21152 reconcileChildren(current, workInProgress, nextChildren, renderLanes);
21153 }
21154
21155 return workInProgress.child;
21156 }
21157
21158 var hasWarnedAboutUsingNoValuePropOnContextProvider = false;
21159

Callers 1

beginWorkFunction · 0.70

Calls 3

pushHostContainerFunction · 0.70
reconcileChildFibersFunction · 0.70
reconcileChildrenFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…