Skip to content

Commit

Permalink
Merge pull request #1704 from leptos-rs/rc1-fixes
Browse files Browse the repository at this point in the history
A few fixes to rc1
  • Loading branch information
gbj authored Sep 13, 2023
2 parents c11c4b0 + 59c7684 commit 8245d77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion leptos_dom/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 1 addition & 3 deletions leptos_dom/src/ssr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,7 @@ impl ToMarker for HydrationKey {
) -> Oco<'static, str> {
#[cfg(debug_assertions)]
{
if component_name == "unit" {
format!("<!--hk={self}|leptos-unit-->").into()
} else if closing {
if closing || component_name == "unit" {
format!("<!--hk={self}c|leptos-{component_name}-end-->").into()
} else {
format!("<!--hk={self}o|leptos-{component_name}-start-->")
Expand Down

0 comments on commit 8245d77

Please sign in to comment.