x icon indicating copy to clipboard operation
x copied to clipboard

root fragment causes inconsistent mount

Open fabiancook opened this issue 4 years ago • 3 comments

Only the final value of the fragment is mounted when using dom

fabiancook avatar May 17 '21 13:05 fabiancook

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.

fabiancook avatar May 17 '21 13:05 fabiancook

This may be related too https://github.com/virtualstate/x/issues/15#issuecomment-999958012

fabiancook avatar Dec 23 '21 00:12 fabiancook

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.

fabiancook avatar Mar 30 '22 11:03 fabiancook