mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
fix: don't propogate empty edits
This commit is contained in:
parent
0e09dda1be
commit
e5b034c6a4
1 changed files with 4 additions and 1 deletions
|
@ -488,11 +488,14 @@ impl VirtualDom {
|
|||
let DiffState { mutations, .. } = diff_state;
|
||||
|
||||
log::trace!("succesffuly resolved scopes {:?}", mutations.dirty_scopes);
|
||||
|
||||
for scope in &mutations.dirty_scopes {
|
||||
self.dirty_scopes.remove(scope);
|
||||
}
|
||||
|
||||
committed_mutations.push(mutations);
|
||||
if !mutations.edits.is_empty() {
|
||||
committed_mutations.push(mutations);
|
||||
}
|
||||
|
||||
// todo: pause the diff machine
|
||||
// if diff_state.work(&mut deadline) {
|
||||
|
|
Loading…
Reference in a new issue