From c782017578f8ea8512911cb3fa44a9298485f0a0 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Fri, 10 Mar 2023 09:43:03 -0500 Subject: [PATCH] feat: impl `IntoView` for `&Fragment` (#655) --- leptos_dom/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/leptos_dom/src/lib.rs b/leptos_dom/src/lib.rs index 9a2fd5741..6896cd1b1 100644 --- a/leptos_dom/src/lib.rs +++ b/leptos_dom/src/lib.rs @@ -451,6 +451,12 @@ impl IntoView for [View; N] { } } +impl IntoView for &Fragment { + fn into_view(self, cx: Scope) -> View { + self.to_owned().into_view(cx) + } +} + #[cfg(all(target_arch = "wasm32", feature = "web"))] impl Mountable for View { fn get_mountable_node(&self) -> web_sys::Node {