diff --git a/leptos_reactive/src/signal_wrappers_read.rs b/leptos_reactive/src/signal_wrappers_read.rs index e3bc4d60b..ce839315c 100644 --- a/leptos_reactive/src/signal_wrappers_read.rs +++ b/leptos_reactive/src/signal_wrappers_read.rs @@ -586,6 +586,12 @@ impl From> for MaybeSignal { } } +impl From<&str> for MaybeSignal { + fn from(value: &str) -> Self { + Self::Static(value.to_string()) + } +} + #[cfg(not(feature = "stable"))] impl FnOnce<()> for MaybeSignal where