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

Function createFiberFromPortal

code/third-party/public/app.js:6306–6316  ·  view source on GitHub ↗
(portal, mode, expirationTime)

Source from the content-addressed store, hash-verified

6304}
6305
6306function createFiberFromPortal(portal, mode, expirationTime) {
6307 var pendingProps = portal.children !== null ? portal.children : [];
6308 var fiber = createFiber(HostPortal, pendingProps, portal.key, mode);
6309 fiber.expirationTime = expirationTime;
6310 fiber.stateNode = {
6311 containerInfo: portal.containerInfo,
6312 pendingChildren: null, // Used by persistent updates
6313 implementation: portal.implementation
6314 };
6315 return fiber;
6316}
6317
6318// TODO: This should be lifted into the renderer.
6319

Callers 3

updatePortalFunction · 0.70
createChildFunction · 0.70
reconcileSinglePortalFunction · 0.70

Calls 1

createFiberFunction · 0.70

Tested by

no test coverage detected