feat: conditionals and iterators in rsx

This commit is contained in:
Jonathan Kelley committed 2022-11-16 22:10:13 -08:00
1 parent cd93e469e2
commit 6b473cbdc5
3 files changed
+132 -4

No files matched your search

+5 -1
View File
@@ -245,7 +245,11 @@ impl<'a> DynamicContext<'a> {
quote! { ::dioxus::core::TemplateNode::Text(#text) }
}
BodyNode::Text(_) | BodyNode::RawExpr(_) | BodyNode::Component(_) => {
BodyNode::RawExpr(_)
| BodyNode::Text(_)
| BodyNode::ForLoop(_)
| BodyNode::IfChain(_)
| BodyNode::Component(_) => {
let ct = self.dynamic_nodes.len();
self.dynamic_nodes.push(root);
self.node_paths.push(self.current_path.clone());