(fiber)
| 11692 | |
| 11693 | |
| 11694 | function getHostParentFiber(fiber) { |
| 11695 | var parent = fiber['return']; |
| 11696 | while (parent !== null) { |
| 11697 | if (isHostParent(parent)) { |
| 11698 | return parent; |
| 11699 | } |
| 11700 | parent = parent['return']; |
| 11701 | } |
| 11702 | invariant(false, 'Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.'); |
| 11703 | } |
| 11704 | |
| 11705 | function isHostParent(fiber) { |
| 11706 | return fiber.tag === HostComponent || fiber.tag === HostRoot || fiber.tag === HostPortal; |
no test coverage detected