( portal: ReactPortal, mode: TypeOfMode, lanes: Lanes, )
| 918 | } |
| 919 | |
| 920 | export function createFiberFromPortal( |
| 921 | portal: ReactPortal, |
| 922 | mode: TypeOfMode, |
| 923 | lanes: Lanes, |
| 924 | ): Fiber { |
| 925 | const pendingProps = portal.children !== null ? portal.children : []; |
| 926 | const fiber = createFiber(HostPortal, pendingProps, portal.key, mode); |
| 927 | fiber.lanes = lanes; |
| 928 | fiber.stateNode = { |
| 929 | containerInfo: portal.containerInfo, |
| 930 | pendingChildren: null, // Used by persistent updates |
| 931 | implementation: portal.implementation, |
| 932 | }; |
| 933 | return fiber; |
| 934 | } |
| 935 | |
| 936 | export function createFiberFromThrow( |
| 937 | error: mixed, |
no outgoing calls
no test coverage detected