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
The route "/posts/?page=5" will still match PostsRoute::List instead of PostsRoute::ListPage(5) because "?page=5" isn't passed down. PostsRoute only ever receives "/".
This is because {*} stops capturing as soon as it sees " #&?=".
This behaviour is certainly desired when capturing simple values like strings but in this case it's rather unfortunate.
I don't have a proposal to offer because there will be significant changes to the router anyway and this issue should be considered in the new design.
The text was updated successfully, but these errors were encountered:
Best explained by looking at the following example:
This feels like it should work. In fact, one of the example in yew-router uses this exact pattern (
BRoute
is used likePostsRoute
here).The route "/posts/?page=5" will still match
PostsRoute::List
instead ofPostsRoute::ListPage(5)
because "?page=5" isn't passed down.PostsRoute
only ever receives "/".This is because
{*}
stops capturing as soon as it sees" #&?="
.This behaviour is certainly desired when capturing simple values like strings but in this case it's rather unfortunate.
I don't have a proposal to offer because there will be significant changes to the router anyway and this issue should be considered in the new design.
The text was updated successfully, but these errors were encountered: