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:
Jonathan Kelley committed 2021-07-07 13:51:55 -04:00
1 parent 22e659c2bd
commit a38a81e129
39 files changed
+566 -255

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 {