MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / createFiberFromPortal

Function createFiberFromPortal

code/redux/public/app.js:7324–7334  ·  view source on GitHub ↗
(portal, mode, expirationTime)

Source from the content-addressed store, hash-verified

7322}
7323
7324function createFiberFromPortal(portal, mode, expirationTime) {
7325 var pendingProps = portal.children !== null ? portal.children : [];
7326 var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
7327 fiber.expirationTime = expirationTime;
7328 fiber.stateNode = {
7329 containerInfo: portal.containerInfo,
7330 pendingChildren: null, // Used by persistent updates
7331 implementation: portal.implementation
7332 };
7333 return fiber;
7334}
7335
7336// TODO: This should be lifted into the renderer.
7337

Callers 3

updatePortalFunction · 0.70
createChildFunction · 0.70
reconcileSinglePortalFunction · 0.70

Calls 1

createFiberFunction · 0.70

Tested by

no test coverage detected