(portal, mode, expirationTime)
| 7209 | } |
| 7210 | |
| 7211 | function createFiberFromPortal(portal, mode, expirationTime) { |
| 7212 | var pendingProps = portal.children !== null ? portal.children : []; |
| 7213 | var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); |
| 7214 | fiber.expirationTime = expirationTime; |
| 7215 | fiber.stateNode = { |
| 7216 | containerInfo: portal.containerInfo, |
| 7217 | pendingChildren: null, // Used by persistent updates |
| 7218 | implementation: portal.implementation |
| 7219 | }; |
| 7220 | return fiber; |
| 7221 | } |
| 7222 | |
| 7223 | // TODO: This should be lifted into the renderer. |
| 7224 |
no test coverage detected