Fixed rsx emit with new AccessCell

This commit is contained in:
2026-01-31 14:56:41 +01:00
parent 2faac93944
commit 4e2636360f
+5 -3
View File
@@ -76,13 +76,15 @@ fn emit_node_scope(node: &RsxNode) -> TokenStream {
{
#deps_emit
r.dynamic_scope(move |scope| {
scope.access_children(|children| {
if #cond {
if scope.children.lock().unwrap().is_empty() {
if children.is_empty() {
#(#kids)*
}
} else {
scope.children.lock().unwrap().clear();
.children.clear();
}
})
}, #deps_vec_emit);
}
}
@@ -103,7 +105,7 @@ fn emit_node_scope(node: &RsxNode) -> TokenStream {
#deps_emit
#[allow(unused_parens)]
r.dynamic_scope(move |scope| {
scope.children.lock().unwrap().clear();
scope.access_children(|children| children.clear());
for #pat in #expr {
#(#kids)*
}