auto_route_library
auto_route_library copied to clipboard
Willpopscope not working in web
Willpopscope not working in web. auto route:7.3.2
sample code: context.router.replaceAll([const MyHomeRoute()]);
return WillPopScope( onWillPop: () async => false, child:Scafold(
What specific issues are you having?
after login I am removing all routes from the stack and then pushing MyHomeRoute. But I am able to go back to previous route 0n click browser back button. Then I tried with willpopscope()async=>false still its not working.
but its working fine in mobile(android/ios)
Having same issue. Any updates on it ?
I have the same problem
I recently spot the same issue and to add more info using a AutoRouterObserver I notice that when you press the back button on the browser, the observer identify that action as a Push instead of a pop
https://github.com/Milad-Akarie/auto_route_library/assets/9093952/d08b603c-fc97-4c00-afe5-faa77eec4703
Also with the same experiment I spot that the previousRoute
on
didPush(Route route, Route? previousRoute)
is always null on back on push or on forward
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions
Any update on this?
Nop
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions
no updates :(
New semi-duplicate issue about that: https://github.com/Milad-Akarie/auto_route_library/issues/1825 I've added a workaround code there.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions