Implement effects using reactivecontext
This commit is contained in:
21 files changed
+287
-320
No files matched your search
+1
-1
@@ -22,7 +22,7 @@ fn app() -> Element {
|
||||
res
|
||||
});
|
||||
|
||||
match future.value().read().as_ref() {
|
||||
match future.value().as_ref() {
|
||||
Some(v) => rsx!( p { "{v}" } ),
|
||||
_ => rsx!( p { "waiting.." } ),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user