diff --git a/src/macros.rs b/src/macros.rs index 4c8b828..c5ca97f 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -22,6 +22,7 @@ macro_rules! rsx_scope { $rsx.dynamic_scope({ $($($crate::rsx_dep!($dep $(as $dp)?);)+)? move |scope| { + scope.children.lock().unwrap().clear(); for $p in $v { $crate::rsx_child!(scope, $($inner)*); }