wip: docs

This commit is contained in:
Jonathan Kelley committed 2021-11-30 22:48:05 -05:00
1 parent 52c7154897
commit 8814977eee
14 files changed
+335 -384

No files matched your search

+3 -5
View File
@@ -1,10 +1,10 @@
mod utils;
use std::{cell::RefCell, collections::HashMap, rc::Rc};
use std::{cell::RefCell, rc::Rc};
use dioxus_core as dioxus;
use dioxus_core::prelude::*;
use dioxus_core_macro::{format_args_f, rsx, Props};
use dioxus_core_macro::{rsx, Props};
use dioxus_html as dioxus_elements;
use wasm_bindgen::{JsCast, JsValue};
use web_sys::{window, Event};
@@ -128,9 +128,7 @@ pub fn use_router<R: Routable>(cx: Context, mut parse: impl FnMut(&str) -> R + '
}
let history = state.history_service.borrow();
todo!()
// history.state.historic_routes.last().unwrap()
//
state.historic_routes.last().unwrap()
},
)
}