fix desktop to poll without budget

This commit is contained in:
Jonathan Kelley committed 2022-12-29 20:39:22 -05:00
1 parent bd720e2268
commit 7bc8150da7
5 files changed
+48 -75

No files matched your search

+2 -10
View File
@@ -5,16 +5,8 @@
use dioxus::prelude::*;
use futures_util::Future;
#[tokio::main]
async fn main() {
let mut dom = VirtualDom::new(app);
dom.rebuild();
loop {
dom.wait_for_work().await;
}
// dioxus_desktop::launch(app).await;
fn main() {
dioxus_desktop::launch(app);
}
fn app(cx: Scope) -> Element {
+2 -3
View File
@@ -3,9 +3,8 @@
use dioxus::prelude::*;
use dioxus_elements::input_data::keyboard_types::Key;
#[tokio::main]
async fn main() {
dioxus_desktop::launch(app).await;
fn main() {
dioxus_desktop::launch(app);
}
#[derive(PartialEq, Eq)]