wip: it works more

This commit is contained in:
Jonathan Kelley committed 2022-11-15 23:59:19 -08:00
1 parent 9a3f84037e
commit ea7ab5f765
4 files changed
+20 -18

No files matched your search

+9 -4
View File
@@ -220,7 +220,7 @@ impl VirtualDom {
path: &template.template.node_paths[idx][1..],
value,
});
1
0
}
DynamicNode::Component {
@@ -296,10 +296,15 @@ impl VirtualDom {
.fold(0, |acc, child| acc + self.create(mutations, child))
}
DynamicNode::Placeholder(_) => {
DynamicNode::Placeholder(slot) => {
let id = self.next_element(template);
mutations.push(CreatePlaceholder { id });
1
slot.set(id);
mutations.push(AssignId {
path: &template.template.node_paths[idx][1..],
id,
});
0
}
}
}