(portal, mode, expirationTime)
| 7322 | } |
| 7323 | |
| 7324 | function createFiberFromPortal(portal, mode, expirationTime) { |
| 7325 | var pendingProps = portal.children !== null ? portal.children : []; |
| 7326 | var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); |
| 7327 | fiber.expirationTime = expirationTime; |
| 7328 | fiber.stateNode = { |
| 7329 | containerInfo: portal.containerInfo, |
| 7330 | pendingChildren: null, // Used by persistent updates |
| 7331 | implementation: portal.implementation |
| 7332 | }; |
| 7333 | return fiber; |
| 7334 | } |
| 7335 | |
| 7336 | // TODO: This should be lifted into the renderer. |
| 7337 |
no test coverage detected