fix mounted information

This commit is contained in:
Evan Almloff committed 2024-01-09 11:35:55 -06:00
1 parent 967c082085
commit b43dfb1f67
6 files changed
+44 -35

No files matched your search

+1 -1
View File
@@ -556,10 +556,10 @@ impl VirtualDom {
self.flush_templates(to);
let _runtime = RuntimeGuard::new(self.runtime.clone());
let new_nodes = self.run_scope(ScopeId::ROOT);
self.scopes[ScopeId::ROOT.0].last_rendered_node = Some(new_nodes.clone());
// Rebuilding implies we append the created elements to the root
let m = self.create_scope(to, ScopeId::ROOT, &new_nodes, None);
to.append_children(ElementId(0), m);
}