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

Function createFiberFromPortal

code/dependency-injection/public/app.js:7166–7176  ·  view source on GitHub ↗
(portal, mode, expirationTime)

Source from the content-addressed store, hash-verified

7164}
7165
7166function createFiberFromPortal(portal, mode, expirationTime) {
7167 var pendingProps = portal.children !== null ? portal.children : [];
7168 var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
7169 fiber.expirationTime = expirationTime;
7170 fiber.stateNode = {
7171 containerInfo: portal.containerInfo,
7172 pendingChildren: null, // Used by persistent updates
7173 implementation: portal.implementation
7174 };
7175 return fiber;
7176}
7177
7178// TODO: This should be lifted into the renderer.
7179

Callers 3

updatePortalFunction · 0.70
createChildFunction · 0.70
reconcileSinglePortalFunction · 0.70

Calls 1

createFiberFunction · 0.70

Tested by

no test coverage detected