Make new enum router less breaking
This commit is contained in:
1 parent
b51ffa0590
commit
61dc549ba1
16 files changed
+74
-63
No files matched your search
@@ -28,7 +28,7 @@ enum Route {
|
||||
#[inline_props]
|
||||
fn Blog(cx: Scope, id: i32) -> Element {
|
||||
render! {
|
||||
Link { target: Route::Home {}, "Go to counter" }
|
||||
Link { to: Route::Home {}, "Go to counter" }
|
||||
table {
|
||||
tbody {
|
||||
for _ in 0..*id {
|
||||
@@ -50,7 +50,7 @@ fn Home(cx: Scope) -> Element {
|
||||
|
||||
cx.render(rsx! {
|
||||
Link {
|
||||
target: Route::Blog {
|
||||
to: Route::Blog {
|
||||
id: *count.get()
|
||||
},
|
||||
"Go to blog"
|
||||
|
||||
@@ -52,7 +52,7 @@ enum Route {
|
||||
#[inline_props]
|
||||
fn Blog(cx: Scope) -> Element {
|
||||
render! {
|
||||
Link { target: Route::Home {}, "Go to counter" }
|
||||
Link { to: Route::Home {}, "Go to counter" }
|
||||
table {
|
||||
tbody {
|
||||
for _ in 0..100 {
|
||||
@@ -74,7 +74,7 @@ fn Home(cx: Scope) -> Element {
|
||||
|
||||
cx.render(rsx! {
|
||||
Link {
|
||||
target: Route::Blog {},
|
||||
to: Route::Blog {},
|
||||
"Go to blog"
|
||||
}
|
||||
div {
|
||||
|
||||
Reference in new issue
Block a user