atomicojs / atomico

Atomico a micro-library for creating webcomponents using only functions, hooks and virtual-dom.
https://atomicojs.dev
MIT License
1.16k stars 43 forks source link

add support to vChildNodes #40

Closed UpperCod closed 3 years ago

UpperCod commented 3 years ago

add support to ChildNodes, this in favor of lightdom, since it allows to keep the references of childNodes independently of the real one.

This allows to keep nodes shared between web components with lightdom, even if the nested component reorders these nodes, the parent webcomponent will keep the list that it renders.

This update is activated after the first render to maintain the rehydration of nodes