(fiber)
| 23908 | } |
| 23909 | |
| 23910 | function getHostParentFiber(fiber) { |
| 23911 | var parent = fiber.return; |
| 23912 | |
| 23913 | while (parent !== null) { |
| 23914 | if (isHostParent(parent)) { |
| 23915 | return parent; |
| 23916 | } |
| 23917 | |
| 23918 | parent = parent.return; |
| 23919 | } |
| 23920 | |
| 23921 | { |
| 23922 | { |
| 23923 | throw Error( "Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue." ); |
| 23924 | } |
| 23925 | } |
| 23926 | } |
| 23927 | |
| 23928 | function isHostParent(fiber) { |
| 23929 | return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; |
no test coverage detected