vue-lazy-hydration
vue-lazy-hydration copied to clipboard
fix: do not hydrate single root elements
I have a component with several v-if v-else-ifs and some other logic in there, but at the end it only exposes one single root element. due to the check of childElementCount this was immediately hydrated, even though it shouldn't. Checking for nodeType seems more reliable and is fully supported in all browsers.
if it achieves the same, it should be fine. I can't really say anmore, but I waas playing around with nodeType too, but I didn't get it to work as expected
@weotch can you run my tests against your PR? do they work?