use component name instead of props name

This commit is contained in:
ealmloff 2023-07-21 16:30:14 -05:00 committed by GitHub
parent 66fc7974b0
commit a43f334141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()
}