feat: some docs, cleaning

This commit is contained in:
Jonathan Kelley committed 2021-09-01 00:57:04 -04:00
1 parent acad9ca622
commit c321532a6c
19 files changed
+269 -195

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ use dioxus_core::prelude::*;
fn main() {}
pub static Example: FC<()> = |cx| {
let list = (0..10).map(|f| LazyNodes::new(move |f| todo!()));
let list = (0..10).map(|_f| LazyNodes::new(move |_f| todo!()));
cx.render(LazyNodes::new(move |cx| {
cx.raw_element(
+1 -1
View File
@@ -21,7 +21,7 @@ const App: FC<()> = |cx| {
};
const Task: FC<()> = |cx| {
let (task, res) = use_task(cx, || async { true });
let (_task, _res) = use_task(cx, || async { true });
// task.pause();
// task.restart();
// task.stop();
+2 -2
View File
@@ -10,6 +10,6 @@ async fn main() {
dom.rebuild();
let mut deadline = async_std::task::sleep(Duration::from_millis(50));
let fut = dom.run_with_deadline(deadline);
let deadline = async_std::task::sleep(Duration::from_millis(50));
let _fut = dom.run_with_deadline(deadline);
}