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:
parent
a50f1c58f7
commit
a8fb2720b9
|
@ -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/> }
|
||||
});
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue