fix memos during suspense
This commit is contained in:
1 parent
da4d9c70e8
commit
3d7f419636
6 files changed
+71
-17
No files matched your search
@@ -237,14 +237,17 @@ impl<T: 'static, S: Storage<T>> Writable for CopyValue<T, S> {
|
||||
S::try_map_mut(mut_, f)
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn try_write(&mut self) -> Result<Self::Mut<T>, generational_box::BorrowMutError> {
|
||||
self.value.try_write()
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn write(&mut self) -> Self::Mut<T> {
|
||||
self.value.write()
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn set(&mut self, value: T) {
|
||||
self.value.set(value);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user