diff --git a/leptos_dom/src/ssr.rs b/leptos_dom/src/ssr.rs index b48ea68afc..60b1f03cfe 100644 --- a/leptos_dom/src/ssr.rs +++ b/leptos_dom/src/ssr.rs @@ -735,9 +735,7 @@ impl ToMarker for HydrationKey { ) -> Oco<'static, str> { #[cfg(debug_assertions)] { - if component_name == "unit" { - format!("").into() - } else if closing { + if closing || component_name == "unit" { format!("").into() } else { format!("")