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
Plattform: Web What we want to achieve:
We want to wrap every single route with a SelectionArea to provide the ability to copy text easily for the user. To do that we tried to create a new Route class, wrapping every Page.
This worked, but lead to an issue with pages using Query or Path Params.
When calling appRouter.replace() to update the current page with different QueryParams the UI is not updated. Specifically we can see the URL change, but the UI displays the old information. Debugging into the PageRouteBuilder we can observe that the old Parameters are provided still.
For now we fixed the issues using implements AutoRouteWrapper on all faulty routes, which solved the issue. It would be great however if we had a solution, introduced in a single place.
Doeas anybody know a solution? Am I using customRouteBuilder wrongly?
The text was updated successfully, but these errors were encountered:
@felixwoestmann You'll need to create a page-based custom route for it to work normally, you can find custom route implementations inside auto_route_page.dart.
Hello,
in our project we ran into an issue.
Plattform: Web
What we want to achieve:
We want to wrap every single route with a SelectionArea to provide the ability to copy text easily for the user. To do that we tried to create a new Route class, wrapping every Page.
This worked, but lead to an issue with pages using Query or Path Params.
When calling appRouter.replace() to update the current page with different QueryParams the UI is not updated. Specifically we can see the URL change, but the UI displays the old information. Debugging into the PageRouteBuilder we can observe that the old Parameters are provided still.
For now we fixed the issues using
implements AutoRouteWrapper
on all faulty routes, which solved the issue. It would be great however if we had a solution, introduced in a single place.Doeas anybody know a solution? Am I using customRouteBuilder wrongly?
The text was updated successfully, but these errors were encountered: