Merge pull request #206 from jquesada2016/199

fixed components only rendering `<() />` on release
This commit is contained in:
Greg Johnston 2022-12-31 09:22:09 -05:00 committed by GitHub
commit d5f8d3a9b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -128,6 +128,7 @@ impl ToTokens for Model {
let span = ::leptos::leptos_dom::tracing::Span::current();
},
quote! {
#[cfg(debug_assertions)]
let _guard = span.entered();
},
)
@ -144,7 +145,6 @@ impl ToTokens for Model {
::leptos::Component::new(
stringify!(#name),
move |cx| {
#[cfg(debug_assertions)]
#tracing_guard_expr
#body_name(cx, #prop_names)