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

Function createFiberFromPortal

code/communication/public/app.js:7108–7118  ·  view source on GitHub ↗
(portal, mode, expirationTime)

Source from the content-addressed store, hash-verified

7106}
7107
7108function createFiberFromPortal(portal, mode, expirationTime) {
7109 var pendingProps = portal.children !== null ? portal.children : [];
7110 var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
7111 fiber.expirationTime = expirationTime;
7112 fiber.stateNode = {
7113 containerInfo: portal.containerInfo,
7114 pendingChildren: null, // Used by persistent updates
7115 implementation: portal.implementation
7116 };
7117 return fiber;
7118}
7119
7120// TODO: This should be lifted into the renderer.
7121

Callers 3

updatePortalFunction · 0.70
createChildFunction · 0.70
reconcileSinglePortalFunction · 0.70

Calls 1

createFiberFunction · 0.70

Tested by

no test coverage detected