Преглед на файлове

chore: undo dirty_scopes rename

Jonathan Kelley преди 3 години
родител
ревизия
a4ea0ba4fe
променени са 2 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 3 3
      packages/core/src/mutations.rs
  2. 2 2
      packages/core/src/virtual_dom.rs

+ 3 - 3
packages/core/src/mutations.rs

@@ -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);
     }
 }
 

+ 2 - 2
packages/core/src/virtual_dom.rs

@@ -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);
                     }