RSX dependency

This commit is contained in:
2026-01-25 20:40:24 +01:00
parent 229353f5f0
commit eb702dce45
2 changed files with 7 additions and 3 deletions
+3 -3
View File
@@ -48,9 +48,9 @@ fn app(cx: &Arc<Context>) -> View {
} }
} }
// for %count, mount as _, (i in 0..count.get_dl()) { for %count, mount as _, (i in 0..count.get_dl()) {
// "{i}" "{i}"
// } }
} }
.view(cx.clone()) .view(cx.clone())
} }
+4
View File
@@ -17,6 +17,8 @@ macro_rules! rsx {
macro_rules! rsx_scope { macro_rules! rsx_scope {
($rsx:expr, for $(%$($dep:ident $(as $dp:pat,)?),+)? ($p:pat in $v:expr) {$($inner:tt)*} $($rest:tt)*) => { ($rsx:expr, for $(%$($dep:ident $(as $dp:pat,)?),+)? ($p:pat in $v:expr) {$($inner:tt)*} $($rest:tt)*) => {
{ {
$($($crate::rsx_dep!($dep);)+)?
$rsx.dynamic_scope({ $rsx.dynamic_scope({
$($($crate::rsx_dep!($dep $(as $dp)?);)+)? $($($crate::rsx_dep!($dep $(as $dp)?);)+)?
move |scope| { move |scope| {
@@ -32,6 +34,8 @@ macro_rules! rsx_scope {
($rsx:expr, if $(%$($dep:ident $(as $dp:pat,)?),+)? ($st:expr) {$($inner:tt)*} $($rest:tt)*) => { ($rsx:expr, if $(%$($dep:ident $(as $dp:pat,)?),+)? ($st:expr) {$($inner:tt)*} $($rest:tt)*) => {
{ {
$($($crate::rsx_dep!($dep);)+)?
$rsx.dynamic_scope({ $rsx.dynamic_scope({
$($($crate::rsx_dep!($dep $(as $dp)?);)+)? $($($crate::rsx_dep!($dep $(as $dp)?);)+)?
move |scope| { move |scope| {