mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
fermi: set atom value even it doesn't exist
This commit is contained in:
parent
d9242c6935
commit
c97f051bbd
1 changed files with 7 additions and 0 deletions
|
@ -74,6 +74,13 @@ impl AtomRoot {
|
|||
}
|
||||
} else {
|
||||
log::trace!("no atoms found for {:?}", ptr);
|
||||
atoms.insert(
|
||||
ptr,
|
||||
Slot {
|
||||
value: Rc::new(value),
|
||||
subscribers: HashSet::new(),
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue