Fix component names when they are re-exported (#2744)
* Fix component names when they are re-exported * Fix read only signal props expansion
This commit is contained in:
1 parent
34bdcd15cf
commit
115cc0ad42
5 files changed
+9
-23
No files matched your search
@@ -1420,9 +1420,9 @@ Finally, call `.build()` to create the instance of `{name}`.
|
||||
pub fn into_vcomponent<M: 'static>(
|
||||
self,
|
||||
render_fn: impl dioxus_core::prelude::ComponentFunction<#original_name #ty_generics, M>,
|
||||
component_name: &'static str,
|
||||
) -> dioxus_core::VComponent {
|
||||
use dioxus_core::prelude::ComponentFunction;
|
||||
let component_name = ::std::any::type_name_of_val(&render_fn);
|
||||
dioxus_core::VComponent::new(move |wrapper: Self| render_fn.rebuild(wrapper.inner), self, component_name)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user