make thiserror a workspace dependency everywhere else

This commit is contained in:
niedzwiedzw committed 2023-07-11 22:54:24 +02:00
1 parent 469a7ac0af
commit f159779af4
9 files changed
+10 -8

No files matched your search

+2
View File
@@ -153,6 +153,7 @@ impl<T> UseSharedState<T> {
})
.map(|value| Ref::map(value, |inner| &inner.value))
}
/// Read the shared value
pub fn read(&self) -> Ref<'_, T> {
match self.try_read() {
@@ -177,6 +178,7 @@ impl<T> UseSharedState<T> {
RefMut::map(value, |inner| &mut inner.value)
})
}
/// Calling "write" will force the component to re-render
///
///