examples: clean up suspense example
This commit is contained in:
1 parent
420a30e5d4
commit
15b72cd7eb
1 file changed
+8
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user