feat: implement ID cycling

This commit is contained in:
Jonathan Kelley committed 2022-11-24 09:11:27 -05:00
1 parent 0cfbfc88e2
commit 5713e13ff2
10 files changed
+213 -145

No files matched your search

+3 -4
View File
@@ -255,10 +255,9 @@ impl<'a> DynamicContext<'a> {
self.dynamic_nodes.push(root);
self.node_paths.push(self.current_path.clone());
if let BodyNode::Text(_) = root {
quote! { ::dioxus::core::TemplateNode::DynamicText(#ct) }
} else {
quote! { ::dioxus::core::TemplateNode::Dynamic(#ct) }
match root {
BodyNode::Text(_) => quote! { ::dioxus::core::TemplateNode::DynamicText(#ct) },
_ => quote! { ::dioxus::core::TemplateNode::Dynamic(#ct) },
}
}
}