chore: undo dirty_scopes rename
This commit is contained in:
1 parent
236ef9a8c4
commit
a4ea0ba4fe
2 files changed
+5
-5
No files matched your search
@@ -17,7 +17,7 @@ use std::{any::Any, fmt::Debug};
|
||||
/// Mutations are the only link between the RealDOM and the VirtualDOM.
|
||||
pub struct Mutations<'a> {
|
||||
pub edits: Vec<DomEdit<'a>>,
|
||||
pub diffed_scopes: FxHashSet<ScopeId>,
|
||||
pub dirty_scopes: FxHashSet<ScopeId>,
|
||||
pub refs: Vec<NodeRefMutation<'a>>,
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ impl<'a> Mutations<'a> {
|
||||
Self {
|
||||
edits: Vec::new(),
|
||||
refs: Vec::new(),
|
||||
diffed_scopes: Default::default(),
|
||||
dirty_scopes: Default::default(),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ impl<'a> Mutations<'a> {
|
||||
}
|
||||
|
||||
pub(crate) fn mark_dirty_scope(&mut self, scope: ScopeId) {
|
||||
self.diffed_scopes.insert(scope);
|
||||
self.dirty_scopes.insert(scope);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -480,8 +480,8 @@ impl VirtualDom {
|
||||
|
||||
let AsyncDiffState { mutations, .. } = diff_state;
|
||||
|
||||
log::debug!("succesffuly resolved scopes {:?}", mutations.diffed_scopes);
|
||||
for scope in &mutations.diffed_scopes {
|
||||
log::debug!("succesffuly resolved scopes {:?}", mutations.dirty_scopes);
|
||||
for scope in &mutations.dirty_scopes {
|
||||
self.dirty_scopes.remove(scope);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user