allow changing the number of root nodes

This commit is contained in:
Evan Almloff committed 2022-12-21 12:50:48 -06:00
1 parent e5a5850354
commit 4c1fe1d9bb
6 files changed
+112 -21

No files matched your search

+3 -5
View File
@@ -126,11 +126,9 @@ impl VirtualDom {
}
});
for root in node.root_ids {
if let Some(id) = root.get() {
if id.0 != 0 {
self.try_reclaim(id);
}
for id in &node.root_ids {
if id.0 != 0 {
self.try_reclaim(id);
}
}
}