(container)
| 17634 | } |
| 17635 | |
| 17636 | function getReactRootElementInContainer(container) { |
| 17637 | if (!container) { |
| 17638 | return null; |
| 17639 | } |
| 17640 | |
| 17641 | if (container.nodeType === DOCUMENT_NODE) { |
| 17642 | return container.documentElement; |
| 17643 | } else { |
| 17644 | return container.firstChild; |
| 17645 | } |
| 17646 | } |
| 17647 | |
| 17648 | function shouldHydrateDueToLegacyHeuristic(container) { |
| 17649 | var rootElement = getReactRootElementInContainer(container); |
no outgoing calls
no test coverage detected