mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-27 06:30:20 +00:00
fix: wasm test
This commit is contained in:
parent
57bd8b7ce2
commit
cdbc37711f
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ fn simple_test() {
|
|||
static APP: Component = |cx| {
|
||||
cx.render(rsx! {
|
||||
Router {
|
||||
onchange: move |route| log::info!("route changed to {}", route),
|
||||
onchange: move |route: RouterService| log::info!("route changed to {:?}", route.current_location()),
|
||||
Route { to: "/", Home {} }
|
||||
Route { to: "blog"
|
||||
Route { to: "/", BlogList {} }
|
||||
|
@ -48,7 +48,7 @@ fn simple_test() {
|
|||
}
|
||||
|
||||
fn BlogPost(cx: Scope) -> Element {
|
||||
let id = use_route(&cx).segment::<usize>("id")?;
|
||||
let id = use_route(&cx).parse_segment::<usize>("id")?;
|
||||
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
|
|
Loading…
Reference in a new issue