restore lifetime checking for signals
This commit is contained in:
1 parent
295c29db5d
commit
60a84956d1
16 files changed
+275
-148
No files matched your search
+1
-1
@@ -80,7 +80,7 @@ fn BreedPic(breed: Signal<String>) -> Element {
|
||||
.await
|
||||
});
|
||||
|
||||
match fut.read().as_ref() {
|
||||
match fut.read_unchecked().as_ref() {
|
||||
Some(Ok(resp)) => rsx! {
|
||||
button { onclick: move |_| fut.restart(), "Click to fetch another doggo" }
|
||||
img { max_width: "500px", max_height: "500px", src: "{resp.message}" }
|
||||
|
||||
Reference in new issue
Block a user