(portal, mode, expirationTime)
| 7164 | } |
| 7165 | |
| 7166 | function 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 |
no test coverage detected