Closed
Description
As I can see from src/virtual_dom/patch.rs
, the seed's virtual DOM module patches the elements in order. This means that I cannot insert an element at the top of the list of elements without updating the rest of the elements. The problem will be visible if CSS animation is applied.
ELM and Hybrids provide a special key
attribute for each item to find matching new and old items.
https://guide.elm-lang.org/optimization/keyed.html
https://hybrids.js.org/template-engine/iteration#keys