(portal, mode, expirationTime)
| 7071 | } |
| 7072 | |
| 7073 | function createFiberFromPortal(portal, mode, expirationTime) { |
| 7074 | var pendingProps = portal.children !== null ? portal.children : []; |
| 7075 | var fiber = createFiber(HostPortal, pendingProps, portal.key, mode); |
| 7076 | fiber.expirationTime = expirationTime; |
| 7077 | fiber.stateNode = { |
| 7078 | containerInfo: portal.containerInfo, |
| 7079 | pendingChildren: null, // Used by persistent updates |
| 7080 | implementation: portal.implementation |
| 7081 | }; |
| 7082 | return fiber; |
| 7083 | } |
| 7084 | |
| 7085 | // TODO: This should be lifted into the renderer. |
| 7086 |
no test coverage detected