x
x copied to clipboard
root fragment causes inconsistent mount
Only the final value of the fragment is mounted when using dom
e.g.
<>
<header>Header</header>
<main>Main</main>
<footer>Footer</footer>
</>
header is removed when main is mounted, and main is removed when footer is mounted.
This may be related too https://github.com/virtualstate/x/issues/15#issuecomment-999958012
DOM should be excluded from the default functionality of x and instead be included as a demo.
Each component may need a different dom implementation which can take into consideration how interaction and events are consumed.