suspense works in desktop
This commit is contained in:
1 parent
66319cf6e2
commit
642b21f125
12 files changed
+180
-109
No files matched your search
@@ -0,0 +1,16 @@
|
||||
use dioxus::prelude::*;
|
||||
use dioxus_desktop::{Config, LogicalSize, WindowBuilder};
|
||||
|
||||
fn main() {
|
||||
dioxus_desktop::launch(|cx| cx.render(rsx! { async_app {} }));
|
||||
}
|
||||
|
||||
async fn async_app(cx: Scope<'_>) -> Element {
|
||||
tokio::time::sleep(tokio::time::Duration::from_secs(1)).await;
|
||||
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
"hi!"
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user