examples: clean up suspense example

This commit is contained in:
Jonathan Kelley committed 2022-01-03 00:46:06 -05:00
1 parent 420a30e5d4
commit 15b72cd7eb
1 file changed
+8 -2
+8 -2
View File
@@ -14,7 +14,13 @@
use dioxus::prelude::*;
fn main() {
dioxus::desktop::launch(app)
use dioxus::desktop::tao::dpi::LogicalSize;
dioxus::desktop::launch_cfg(app, |cfg| {
cfg.with_window(|w| {
w.with_title("Doggo Fetcher")
.with_inner_size(LogicalSize::new(600.0, 800.0))
})
});
}
#[derive(serde::Deserialize)]
@@ -56,7 +62,7 @@ fn Doggo(cx: Scope) -> Element {
Some(Ok(resp)) => rsx! {
button {
onclick: move |_| fut.restart(),
"Click to fetch another dog"
"Click to fetch another doggo"
}
div {
img {