Merge pull request #2054 from ealmloff/fix-read-only-signal-visibility
Fix the visibility of the read only signal helper struct
This commit is contained in:
1 file changed
+3
-2
@@ -1336,11 +1336,12 @@ Finally, call `.build()` to create the instance of `{name}`.
|
|||||||
if self.has_signal_fields() {
|
if self.has_signal_fields() {
|
||||||
let name = Ident::new(&format!("{}WithOwner", name), name.span());
|
let name = Ident::new(&format!("{}WithOwner", name), name.span());
|
||||||
let original_name = &self.name;
|
let original_name = &self.name;
|
||||||
|
let vis = &self.vis;
|
||||||
quote! {
|
quote! {
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[allow(dead_code, non_camel_case_types, missing_docs)]
|
#[allow(dead_code, non_camel_case_types, missing_docs)]
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
struct #name #ty_generics {
|
#vis struct #name #ty_generics {
|
||||||
inner: #original_name #ty_generics,
|
inner: #original_name #ty_generics,
|
||||||
owner: Owner,
|
owner: Owner,
|
||||||
}
|
}
|
||||||
@@ -1353,7 +1354,7 @@ Finally, call `.build()` to create the instance of `{name}`.
|
|||||||
|
|
||||||
impl #original_impl_generics #name #ty_generics #where_clause {
|
impl #original_impl_generics #name #ty_generics #where_clause {
|
||||||
/// Create a component from the props.
|
/// Create a component from the props.
|
||||||
fn into_vcomponent<M: 'static>(
|
pub fn into_vcomponent<M: 'static>(
|
||||||
self,
|
self,
|
||||||
render_fn: impl dioxus_core::prelude::ComponentFunction<#original_name #ty_generics, M>,
|
render_fn: impl dioxus_core::prelude::ComponentFunction<#original_name #ty_generics, M>,
|
||||||
component_name: &'static str,
|
component_name: &'static str,
|
||||||
|
|||||||
Reference in new issue
Block a user