(container)
| 17496 | } |
| 17497 | |
| 17498 | function getReactRootElementInContainer(container) { |
| 17499 | if (!container) { |
| 17500 | return null; |
| 17501 | } |
| 17502 | |
| 17503 | if (container.nodeType === DOCUMENT_NODE) { |
| 17504 | return container.documentElement; |
| 17505 | } else { |
| 17506 | return container.firstChild; |
| 17507 | } |
| 17508 | } |
| 17509 | |
| 17510 | function shouldHydrateDueToLegacyHeuristic(container) { |
| 17511 | var rootElement = getReactRootElementInContainer(container); |
no outgoing calls
no test coverage detected