wip: continue to tweak suspense

This commit is contained in:
Jonathan Kelley committed 2022-11-22 10:05:13 -08:00
1 parent 08ca068d1c
commit 7e6cea3a13
9 files changed
+90 -84

No files matched your search

+4 -1
View File
@@ -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 {