fix: keyed diffing accidentally pushing every node

This commit is contained in:
Jonathan Kelley committed 2022-02-23 08:09:16 -05:00
1 parent 6b17522507
commit 92573d67a1
2 files changed
+7 -18

No files matched your search

-2
View File
@@ -53,14 +53,12 @@ export class Interpreter {
}
}
CreateTextNode(text, root) {
// todo: make it so the types are okay
const node = document.createTextNode(text);
this.nodes[root] = node;
this.stack.push(node);
}
CreateElement(tag, root) {
const el = document.createElement(tag);
// el.setAttribute("data-dioxus-id", `${root}`);
this.nodes[root] = el;
this.stack.push(el);
}