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

Function createFiberFromPortal

lib/assets/react-source/development/react.js:27749–27760  ·  view source on GitHub ↗
(portal, mode, expirationTime)

Source from the content-addressed store, hash-verified

27747 return fiber;
27748 }
27749 function createFiberFromPortal(portal, mode, expirationTime) {
27750 var pendingProps = portal.children !== null ? portal.children : [];
27751 var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
27752 fiber.expirationTime = expirationTime;
27753 fiber.stateNode = {
27754 containerInfo: portal.containerInfo,
27755 pendingChildren: null,
27756 // Used by persistent updates
27757 implementation: portal.implementation
27758 };
27759 return fiber;
27760 } // Used for stashing WIP properties to replay failed work in DEV.
27761
27762 function assignFiberPropertiesInDEV(target, source) {
27763 if (target === null) {

Callers 3

updatePortalFunction · 0.85
createChildFunction · 0.85
reconcileSinglePortalFunction · 0.85

Calls 1

createFiberFunction · 0.85

Tested by

no test coverage detected