Merge pull request #1704 from leptos-rs/rc1-fixes

A few fixes to rc1
This commit is contained in:
Greg Johnston 2023-09-13 16:51:19 -04:00 committed by GitHub
commit 8245d77738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -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;

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