diff --git a/leptos_dom/src/lib.rs b/leptos_dom/src/lib.rs index 70237bc06b..b109f78d9c 100644 --- a/leptos_dom/src/lib.rs +++ b/leptos_dom/src/lib.rs @@ -862,7 +862,6 @@ where cfg_if! { if #[cfg(all(target_arch = "wasm32", feature = "web"))] { - crate::logging::console_log("mounting"); mount_to(crate::document().body().expect("body element to exist"), f) } else { _ = f; 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!("")