You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library assumes there is only top-level root in the DOM. In cases where mutliple top-level root elements are used, the user can use fragment to wrap the elements into one top-level root. However, if there is a requirement to diff multiple top-level root elements, a good way to start is replacing the calls to diff function to diff-nodes instead. I don't have the bandwidth to do these changes at the moment, but if there is a PR that does this, without breaking the existing functionalities, then I would be happy to merge the PR.
I encountered an issue with a DOM/VDOM patch:
When trying to patch on line 14 the diff fails. The internals below show that dom::Node is correctly built from "
" but the resulting patch is wrong. I don't get what happens in the diff implementation, maybe this is a bug.Interestingly I can patch to "" and then to something else again. But the diff needs one root node with childs, several root nodes is not working.
internals
The source for this test is at https://github.com/ivanceras/sauron/pull/104/files#diff-cbb911e3744afc115b55c5d80223e0d486ef1f62dfbb5bcc6f06f4ef7038c75b
The text was updated successfully, but these errors were encountered: