examples: clean up suspense example
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 {
