Experiment with call syntax only working for copy types

This commit is contained in:
Jonathan Kelley committed 2024-01-15 21:12:44 -08:00
1 parent bb750f5336
commit 33bba24867
19 files changed
+52 -76

No files matched your search

+3 -1
View File
@@ -33,7 +33,9 @@ fn app() -> Element {
Some(resp) => rsx! {
h1 { "Select a dog breed!" }
div { height: "500px", display: "flex",
ul { flex: "50%", {breed_list} }
ul { flex: "50%", {breed_list.value().cloned().unwrap_or_else(|| rsx! {
"loading breeds..."
})} }
div { flex: "50%", BreedPic { breed } }
}
},