fix: interaction between both hot-reload engines (#4083)
* fix: interaction between both hot-reload engines * correct comment
This commit is contained in:
1 parent
b2ec1d957b
commit
d00636ca31
4 files changed
+601
-506
No files matched your search
@@ -268,6 +268,12 @@ impl GlobalLazyContext {
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
#[doc(hidden)]
|
||||
/// Clear all global signals of a given type.
|
||||
pub fn clear<T: 'static>(&self) {
|
||||
self.map.borrow_mut().retain(|_k, v| !v.is::<T>());
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the global context for signals
|
||||
|
||||
Reference in new issue
Block a user