From d575b3e4e46517a2c57e68b8eedab22e79e51aa3 Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Mon, 11 Mar 2024 14:46:51 -0500 Subject: [PATCH] fix the visibility of the read only signal helper struct --- packages/core-macro/src/props/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core-macro/src/props/mod.rs b/packages/core-macro/src/props/mod.rs index 598cb5326..fd438096f 100644 --- a/packages/core-macro/src/props/mod.rs +++ b/packages/core-macro/src/props/mod.rs @@ -1336,11 +1336,12 @@ Finally, call `.build()` to create the instance of `{name}`. if self.has_signal_fields() { let name = Ident::new(&format!("{}WithOwner", name), name.span()); let original_name = &self.name; + let vis = &self.vis; quote! { #[doc(hidden)] #[allow(dead_code, non_camel_case_types, missing_docs)] #[derive(Clone)] - struct #name #ty_generics { + #vis struct #name #ty_generics { inner: #original_name #ty_generics, owner: Owner, } @@ -1353,7 +1354,7 @@ Finally, call `.build()` to create the instance of `{name}`. impl #original_impl_generics #name #ty_generics #where_clause { /// Create a component from the props. - fn into_vcomponent( + pub fn into_vcomponent( self, render_fn: impl dioxus_core::prelude::ComponentFunction<#original_name #ty_generics, M>, component_name: &'static str,