(portal, mode, expirationTime)
| 7106 | } |
| 7107 | |
| 7108 | function 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 |
no test coverage detected