Fix issue with mutability in component macro

This commit is contained in:
Jonathan Kelley committed 2024-01-15 23:57:10 -08:00
1 parent 8559984e9d
commit 98bd78de43
5 files changed
+47 -22

No files matched your search

+5
View File
@@ -17,7 +17,12 @@ fn app() -> Element {
if running() {
count += 1;
}
let val = running.read();
tokio::time::sleep(Duration::from_millis(400)).await;
println!("Running: {}", *val);
}
});