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

Function createFiberFromPortal

code/composition/public/app.js:7211–7221  ·  view source on GitHub ↗
(portal, mode, expirationTime)

Source from the content-addressed store, hash-verified

7209}
7210
7211function createFiberFromPortal(portal, mode, expirationTime) {
7212 var pendingProps = portal.children !== null ? portal.children : [];
7213 var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
7214 fiber.expirationTime = expirationTime;
7215 fiber.stateNode = {
7216 containerInfo: portal.containerInfo,
7217 pendingChildren: null, // Used by persistent updates
7218 implementation: portal.implementation
7219 };
7220 return fiber;
7221}
7222
7223// TODO: This should be lifted into the renderer.
7224

Callers 3

updatePortalFunction · 0.70
createChildFunction · 0.70
reconcileSinglePortalFunction · 0.70

Calls 1

createFiberFunction · 0.70

Tested by

no test coverage detected