make navigator non-generic

This commit is contained in:
Evan Almloff committed 2023-07-26 11:08:45 -07:00
1 parent 0ebcb5f1be
commit 947a153347
4 files changed
+44 -22

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ fn Route3(cx: Scope, dynamic: String) -> Element {
"hello world link"
}
button {
onclick: move |_| { navigator.push(NavigationTarget::<Route>::External("https://www.google.com".to_string())); },
onclick: move |_| { navigator.push("https://www.google.com"); },
"google link"
}
p { "Site Map" }