mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 14:54:16 +00:00
fix: warnings on hydrating ()
This commit is contained in:
parent
a158e7f8bd
commit
59c7684568
1 changed files with 1 additions and 3 deletions
|
@ -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-->")
|
||||
|
|
Loading…
Reference in a new issue