fix: keyed diffing accidentally pushing every node
This commit is contained in:
1 parent
6b17522507
commit
92573d67a1
2 files changed
+7
-18
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user