(portal, mode, expirationTime)
| 6304 | } |
| 6305 | |
| 6306 | function 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 |
no test coverage detected