mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 22:54:12 +00:00
use component name instead of props name
This commit is contained in:
parent
66fc7974b0
commit
a43f334141
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ unsafe impl<'a, P> AnyProps<'a> for VProps<'a, P> {
|
|||
Ok(Some(e)) => RenderReturn::Ready(e),
|
||||
Ok(None) => RenderReturn::default(),
|
||||
Err(err) => {
|
||||
let component_name = std::any::type_name::<P>();
|
||||
let component_name = cx.name();
|
||||
log::error!("Error while rendering component `{component_name}`: {err:?}");
|
||||
RenderReturn::default()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue