removed a sneaky `c` that was in the SSR id generation for components, as well as fixed an extra id call count that wasn't supposed to be there

This commit is contained in:
Jose Quesada 2022-12-08 22:40:49 -06:00
parent a50f1c58f7
commit a8fb2720b9
3 changed files with 2 additions and 4 deletions

View File

@ -35,6 +35,7 @@ use wasm_bindgen::prelude::wasm_bindgen;
#[wasm_bindgen(start)]
pub fn start() {
console_error_panic_hook::set_once();
leptos::mount_to_body(move |cx| {
view! { cx, <App/> }
});

View File

@ -88,9 +88,6 @@ impl ComponentRepr {
Comment::new(Cow::Owned(format!("<{name}>")), id, false),
);
#[cfg(not(debug_assertions))]
let closing = Comment::new("", id, true);
#[cfg(all(target_arch = "wasm32", feature = "web"))]
let document_fragment = {
let fragment = crate::document().create_document_fragment();

View File

@ -97,7 +97,7 @@ impl View {
).into()
} else {
format!(
r#"{content}<template id="{}c"></template>"#,
r#"{content}<template id="{}"></template>"#,
HydrationCtx::to_string(id, true)
).into()
}