You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
In-development version of yew-router, it doesn't work for defining multiple parameters.
Route enum
#[derive(Routable,PartialEq,Clone,Debug)]pubenumRoutes{
...
#[at("/:username/:article_slug")]Article{username:String,article_slug:String},// error: expected one of `,`, `.`, `?`, `}`, or an operator, // found `article_slug`#[at("/category/:category_slug")]Category{category_slug:String},#[at("/topic/:topic_slug")]Topic{topic_slug:String},
...
}
@zzy Thank you for the detailed issue :D
I think the CI failed due to an error getting rustc but I think this fix should be merged shortly 🙏
I did test the change on the router example to confirm it works at runtime too :)
@zzy Thank you for the detailed issue :D
I think the CI failed due to an error getting rustc but I think this fix should be merged shortly 🙏
I did test the change on the router example to confirm it works at runtime too :)
@zzy Can you reopen this issue? :)
Let #1988 close the issue - just in case that PR needs more work it allows others to see the issue hasn't been fixed until that PR is merged into master
Problem
In-development version of yew-router, it doesn't work for defining multiple parameters.
Route enum
switch function
Article component
Environment:
master
1.54.0
wasm32-unknown-emscripten
trunk
Thank you very much!
The text was updated successfully, but these errors were encountered: