wip: fix issues with lifetimes
this commit fixes some lifetime issues regarding having to "move" data into the IntoVNode closure.
This commit is contained in:
1 parent
22e659c2bd
commit
a38a81e129
39 files changed
+566
-255
No files matched your search
@@ -25,7 +25,7 @@ impl ToTokens for Element {
|
||||
// let name = &self.name.to_string();
|
||||
|
||||
tokens.append_all(quote! {
|
||||
__cx.element(#name)
|
||||
__cx.element(dioxus_elements::#name)
|
||||
});
|
||||
|
||||
// Add attributes
|
||||
|
||||
@@ -80,7 +80,7 @@ impl ToTokens for RsxRender {
|
||||
quote! {#inner}
|
||||
} else {
|
||||
let childs = &self.roots;
|
||||
quote! { __cx.fragment_from_iter(&[ #(#childs),* ]) }
|
||||
quote! { __cx.fragment_from_iter([ #(#childs),* ]) }
|
||||
};
|
||||
|
||||
match &self.custom_context {
|
||||
|
||||
Reference in new issue
Block a user