mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
impl Default for MaybeSignal (#464)
This commit is contained in:
parent
3ff5089bf4
commit
45275ff8d4
1 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue