mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
fix: allow component to use span prop when tracing feature is enabled (#2969)
This commit is contained in:
parent
96a1f80daf
commit
d7881ccfb5
1 changed files with 2 additions and 2 deletions
|
@ -204,11 +204,11 @@ impl ToTokens for Model {
|
|||
)]
|
||||
},
|
||||
quote! {
|
||||
let span = ::leptos::tracing::Span::current();
|
||||
let __span = ::leptos::tracing::Span::current();
|
||||
},
|
||||
quote! {
|
||||
#[cfg(debug_assertions)]
|
||||
let _guard = span.entered();
|
||||
let _guard = __span.entered();
|
||||
},
|
||||
if no_props || !cfg!(feature = "trace-component-props") {
|
||||
quote!()
|
||||
|
|
Loading…
Reference in a new issue