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

Function createFiberFromPortal

code/styling/public/app.js:7073–7083  ·  view source on GitHub ↗
(portal, mode, expirationTime)

Source from the content-addressed store, hash-verified

7071}
7072
7073function createFiberFromPortal(portal, mode, expirationTime) {
7074 var pendingProps = portal.children !== null ? portal.children : [];
7075 var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
7076 fiber.expirationTime = expirationTime;
7077 fiber.stateNode = {
7078 containerInfo: portal.containerInfo,
7079 pendingChildren: null, // Used by persistent updates
7080 implementation: portal.implementation
7081 };
7082 return fiber;
7083}
7084
7085// TODO: This should be lifted into the renderer.
7086

Callers 3

updatePortalFunction · 0.70
createChildFunction · 0.70
reconcileSinglePortalFunction · 0.70

Calls 1

createFiberFunction · 0.70

Tested by

no test coverage detected