virtualstate/x

root fragment causes inconsistent mount

fabiancook opened this issue · 3 comments

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 #15 (comment)

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.