diff --git a/leptos_dom/src/lib.rs b/leptos_dom/src/lib.rs index 292594017..82360522b 100644 --- a/leptos_dom/src/lib.rs +++ b/leptos_dom/src/lib.rs @@ -1182,6 +1182,17 @@ impl IntoView for Cow<'static, str> { } } +impl IntoView for Rc { + #[cfg_attr( + any(debug_assertions, feature = "ssr"), + instrument(level = "trace", name = "#text", skip_all) + )] + #[inline(always)] + fn into_view(self) -> View { + View::Text(Text::new(self.into())) + } +} + impl IntoView for Oco<'static, str> { #[cfg_attr( any(debug_assertions, feature = "ssr"),