MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / updatePortal

Function updatePortal

code/composition/public/app.js:9181–9193  ·  view source on GitHub ↗
(returnFiber, current, portal, expirationTime)

Source from the content-addressed store, hash-verified

9179 }
9180
9181 function updatePortal(returnFiber, current, portal, expirationTime) {
9182 if (current === null || current.tag !== HostPortal || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation) {
9183 // Insert
9184 var created = createFiberFromPortal(portal, returnFiber.mode, expirationTime);
9185 created['return'] = returnFiber;
9186 return created;
9187 } else {
9188 // Update
9189 var existing = useFiber(current, portal.children || [], expirationTime);
9190 existing['return'] = returnFiber;
9191 return existing;
9192 }
9193 }
9194
9195 function updateFragment(returnFiber, current, fragment, expirationTime, key) {
9196 if (current === null || current.tag !== Fragment) {

Callers 2

updateSlotFunction · 0.70
updateFromMapFunction · 0.70

Calls 2

createFiberFromPortalFunction · 0.70
useFiberFunction · 0.70

Tested by

no test coverage detected