fix: warnings on hydrating ()

This commit is contained in:
Greg Johnston 2023-09-13 12:01:05 -04:00
parent a158e7f8bd
commit 59c7684568

View file

@ -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-->")