wip: considering making vdom passed verywehre
This commit is contained in:
1 parent
d4d7114beb
commit
ac3a7b1fbc
6 files changed
+141
-65
No files matched your search
@@ -194,7 +194,7 @@ impl VirtualDom {
|
||||
}
|
||||
|
||||
pub async fn diff_async<'s>(&'s mut self) -> Mutations<'s> {
|
||||
let mut diff_machine = DiffMachine::new(Mutations::new(), self.base_scope, &self.scheduler);
|
||||
let mut diff_machine = DiffMachine::new(Mutations::new(), &self.scheduler);
|
||||
|
||||
let cur_component = self
|
||||
.scheduler
|
||||
@@ -203,12 +203,7 @@ impl VirtualDom {
|
||||
|
||||
cur_component.run_scope().unwrap();
|
||||
|
||||
diff_machine.stack.push(DiffInstruction::DiffNode {
|
||||
old: cur_component.frames.wip_head(),
|
||||
new: cur_component.frames.fin_head(),
|
||||
});
|
||||
|
||||
diff_machine.work().await;
|
||||
diff_machine.diff_scope(self.base_scope).await;
|
||||
|
||||
diff_machine.mutations
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user