fix: interaction between both hot-reload engines (#4083)

* fix: interaction between both hot-reload engines

* correct comment
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-05-07 11:35:25 -07:00
1 parent b2ec1d957b
commit d00636ca31
4 files changed
+601 -506

No files matched your search

+6
View File
@@ -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