fix: eliminate deep Element cloning in @if by using &[&Element] references
This commit is contained in:
@@ -55,8 +55,9 @@ impl GlintApp {
|
||||
}
|
||||
|
||||
let dirty_set = self.doc.tracker.take_dirty_set();
|
||||
let root_refs: Vec<&Element<'static>> = self.doc.roots.iter().collect();
|
||||
self.vdom_roots = Interpreter::evaluate_vdom_incr(
|
||||
&self.doc.roots,
|
||||
&root_refs,
|
||||
&mut self.doc.variables,
|
||||
&self.doc.components,
|
||||
&self.rhei,
|
||||
|
||||
Reference in New Issue
Block a user