Fix issue with mutability in component macro
This commit is contained in:
5 files changed
+47
-22
No files matched your search
@@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user