it almost lives?

This commit is contained in:
Evan Almloff committed 2023-07-25 18:14:48 -07:00
1 parent d637ef187c
commit 5f0dd3af3e
43 files changed
+506 -244

No files matched your search

+3 -3
View File
@@ -33,7 +33,7 @@ where
{
render! {
h1 { "App" }
GenericRouter::<R> {
Router::<R> {
config: || RouterConfig::default().history(MemoryHistory::default())
}
}
@@ -97,7 +97,7 @@ fn href_external() {
fn Root(cx: Scope) -> Element {
render! {
Link {
to: NavigationTarget::External("https://dioxuslabs.com/".into()),
to: "https://dioxuslabs.com/",
"Link"
}
}
@@ -318,7 +318,7 @@ fn with_new_tab_external() {
fn Root(cx: Scope) -> Element {
render! {
Link {
to: NavigationTarget::External("https://dioxuslabs.com/".into()),
to: "https://dioxuslabs.com/",
new_tab: true,
"Link"
}
+3 -3
View File
@@ -37,7 +37,7 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
fn App(cx: Scope<AppProps>) -> Element {
render! {
h1 { "App" }
Router {
Router::<Route> {
config: {
let path = cx.props.path.parse().unwrap();
move || RouterConfig::default().history(MemoryHistory::with_initial_path(path))
@@ -57,7 +57,7 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
fn Fixed(cx: Scope) -> Element {
render! {
h2 { "Fixed" }
Outlet { }
Outlet::<Route> { }
}
}
@@ -79,7 +79,7 @@ fn prepare(path: impl Into<String>) -> VirtualDom {
fn Parameter(cx: Scope, id: u8) -> Element {
render! {
h2 { "Parameter {id}" }
Outlet { }
Outlet::<Route> { }
}
}