Skip to content

Commit

Permalink
fix: warnings on hydrating ()
Browse files Browse the repository at this point in the history
  • Loading branch information
gbj committed Sep 13, 2023
1 parent a158e7f commit 59c7684
Showing 1 changed file with 1 addition and 3 deletions.
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 59c7684

Please sign in to comment.