mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
impl From<&str> for MaybeSignal<String> (#472)
This commit is contained in:
parent
76aeb573bf
commit
7f77910e91
1 changed files with 6 additions and 0 deletions
|
@ -586,6 +586,12 @@ impl<T> From<Signal<T>> for MaybeSignal<T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<&str> for MaybeSignal<String> {
|
||||
fn from(value: &str) -> Self {
|
||||
Self::Static(value.to_string())
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "stable"))]
|
||||
impl<T> FnOnce<()> for MaybeSignal<T>
|
||||
where
|
||||
|
|
Loading…
Reference in a new issue