This commit is contained in:
Evan Almloff committed 2023-06-02 12:33:47 -05:00
1 parent 577f99e68c
commit a9307e57e6
23 files changed
+160 -164

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ where
render! {
h1 { "App" }
GenericRouter::<R> {
config: || RouterConfiguration::default().history(MemoryHistory::default())
config: || RouterConfig::default().history(MemoryHistory::default())
}
}
}
+2 -2
View File
@@ -39,8 +39,8 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
h1 { "App" }
Router {
config: {
let path = cx.props.path.clone();
move || RouterConfiguration::default().history(MemoryHistory::with_initial_path(path).unwrap())
let path = cx.props.path.parse().unwrap();
move || RouterConfig::default().history(MemoryHistory::with_initial_path(path))
}
}
}