Small change in iter

This commit is contained in:
2025-11-01 16:58:10 +01:00
parent 23edb6c917
commit 6424ad3390
+3 -11
View File
@@ -16,23 +16,15 @@ pub fn app(screen: Arc<Screen>) -> Rsx {
let count = use_state(1); let count = use_state(1);
run! { run! {
ref count { ref count, items {
loop { loop {
if count.get_dl() == 20 { items.get().push(count.get_dl());
break;
}
std::thread::sleep(std::time::Duration::from_millis(200));
**count.get() += 1; **count.get() += 1;
std::thread::sleep(std::time::Duration::from_millis(100));
} }
} }
} }
run! {
use count ref items {
items.get().push(count.get_dl());
}
}
rsx! { rsx! {
@AlwaysFocused; @AlwaysFocused;
@Handler::new({ @Handler::new({