I have made several attempts at implementing the same child diffing algorithm as in preact, snabbdom and read the code for several other VDOM implementations.
I think I got close once but there were some subtle ordering issues. When reordering children, the order of children would end up different in the DOM then in the VDOM sometimes. So instead I made the simplest thing I could think of that would work, however, it's not very efficient.
It would be pretty awesome to get that two way diff algorithm working.
I have made several attempts at implementing the same child diffing algorithm as in preact, snabbdom and read the code for several other VDOM implementations.
I think I got close once but there were some subtle ordering issues. When reordering children, the order of children would end up different in the DOM then in the VDOM sometimes. So instead I made the simplest thing I could think of that would work, however, it's not very efficient.
It would be pretty awesome to get that two way diff algorithm working.