mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 08:44:28 -05:00
impl Default for MaybeSignal (#464)
This commit is contained in:
committed by
GitHub
parent
3ff5089bf4
commit
45275ff8d4
@@ -399,6 +399,12 @@ where
|
||||
Dynamic(Signal<T>),
|
||||
}
|
||||
|
||||
impl<T: Default> Default for MaybeSignal<T> {
|
||||
fn default() -> Self {
|
||||
Self::Static(Default::default())
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> UntrackedGettableSignal<T> for MaybeSignal<T>
|
||||
where
|
||||
T: 'static,
|
||||
|
||||
Reference in New Issue
Block a user