dioxus/packages/core/tests/eventsystem.rs
Jonathan Kelley 8b0eb87c72 wip: refactor
2021-08-26 22:05:09 -04:00

22 lines
533 B
Rust

use bumpalo::Bump;
use anyhow::{Context, Result};
use dioxus::{diff::DiffMachine, prelude::*, scheduler::Scheduler, DomEdit};
use dioxus_core as dioxus;
use dioxus_html as dioxus_elements;
#[async_std::test]
async fn event_queue_works() {
static App: FC<()> = |cx| {
cx.render(rsx! {
div { "hello world" }
})
};
let mut dom = VirtualDom::new(App);
let edits = dom.rebuild();
async_std::task::spawn_local(async move {
// let mutations = dom.run_unbounded().await;
});
}