wip: continue to tweak suspense
This commit is contained in:
1 parent
08ca068d1c
commit
7e6cea3a13
9 files changed
+90
-84
No files matched your search
+4
-1
@@ -63,7 +63,10 @@ async fn breed_pic(cx: Scope, breed: String) -> Element {
|
||||
Ok(resp) => render! {
|
||||
div {
|
||||
button {
|
||||
onclick: move |_| fut.restart(),
|
||||
onclick: move |_| {
|
||||
println!("clicked");
|
||||
fut.restart()
|
||||
},
|
||||
"Click to fetch another doggo"
|
||||
}
|
||||
img {
|
||||
|
||||
Reference in new issue
Block a user