wip: worked backwards a bit and got it slightly figured out
This commit is contained in:
1 parent
ba9e1dbb8f
commit
9ee2bfb010
10 files changed
+322
-147
No files matched your search
@@ -57,11 +57,21 @@ impl ToTokens for CallBody {
|
||||
}),
|
||||
// Otherwise we just build the LazyNode wrapper
|
||||
None => out_tokens.append_all(quote! {
|
||||
dioxus::prelude::LazyNodes::new(move |__cx: NodeFactory|{
|
||||
use dioxus_elements::{GlobalAttributes, SvgAttributes};
|
||||
|
||||
#inner
|
||||
})
|
||||
{
|
||||
|
||||
let ___p: Box<dyn FnOnce(NodeFactory) -> VNode + '_> = Box::new(move |__cx: NodeFactory|{
|
||||
use dioxus_elements::{GlobalAttributes, SvgAttributes};
|
||||
|
||||
#inner
|
||||
});
|
||||
Some(___p)
|
||||
}
|
||||
// dioxus::prelude::LazyNodes::new(move |__cx: NodeFactory|{
|
||||
// use dioxus_elements::{GlobalAttributes, SvgAttributes};
|
||||
|
||||
// #inner
|
||||
// })
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user