default the storage to UnSyncStorage in ReadSignal type (#3879)

This commit is contained in:
_Robertas authored and GitHub committed 2025-04-15 14:23:26 -07:00
1 parent 5f01d79907
commit c58d7303b8
1 file changed
+1 -1
+1 -1
View File
@@ -12,7 +12,7 @@ pub struct ReadOnlySignal<T: 'static, S: Storage<SignalData<T>> = UnsyncStorage>
}
/// A signal that can only be read from.
pub type ReadSignal<T, S> = ReadOnlySignal<T, S>;
pub type ReadSignal<T, S = UnsyncStorage> = ReadOnlySignal<T, S>;
impl<T: 'static, S: Storage<SignalData<T>>> From<Signal<T, S>> for ReadOnlySignal<T, S> {
fn from(inner: Signal<T, S>) -> Self {