fix: correct namespace for Unit in empty views (closes #518) (#520)

This commit is contained in:
Greg Johnston 2023-02-13 20:25:26 -05:00 committed by GitHub
parent e732a4952b
commit 50d8eae694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ pub(crate) fn render_view(
0 => {
let span = Span::call_site();
quote_spanned! {
span => leptos::Unit
span => leptos::leptos_dom::Unit
}
}
1 => root_node_to_tokens_ssr(cx, &nodes[0], global_class),
@ -168,7 +168,7 @@ pub(crate) fn render_view(
0 => {
let span = Span::call_site();
quote_spanned! {
span => leptos::Unit
span => leptos::leptos_dom::Unit
}
}
1 => node_to_tokens(cx, &nodes[0], TagType::Unknown, global_class),