feat: add better use_state for fermi

This commit is contained in:
Jonathan Kelley committed 2022-04-05 21:36:48 -04:00
1 parent dfc69c0905
commit 4518b6bc8c
3 files changed
+424 -2

No files matched your search

-2
View File
@@ -39,8 +39,6 @@ impl AtomRoot {
}
pub fn register<V: 'static>(&self, f: impl Readable<V>, scope: ScopeId) -> Rc<V> {
log::trace!("registering atom {:?}", f.unique_id());
let mut atoms = self.atoms.borrow_mut();
// initialize the value if it's not already initialized