auto_route_library icon indicating copy to clipboard operation
auto_route_library copied to clipboard

Willpopscope not working in web

Open priyaranjan12345 opened this issue 1 year ago • 13 comments

Willpopscope not working in web. auto route:7.3.2

sample code: context.router.replaceAll([const MyHomeRoute()]);

return WillPopScope( onWillPop: () async => false, child:Scafold(

priyaranjan12345 avatar Jun 01 '23 10:06 priyaranjan12345

What specific issues are you having?

Tclha avatar Jun 06 '23 03:06 Tclha

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)

priyaranjan12345 avatar Jun 07 '23 08:06 priyaranjan12345

Having same issue. Any updates on it ?

AshishAcharya083 avatar Jul 26 '23 05:07 AshishAcharya083

I have the same problem

ranulfo avatar Aug 19 '23 17:08 ranulfo

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

oscarshaitan avatar Aug 22 '23 15:08 oscarshaitan

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

oscarshaitan avatar Aug 22 '23 15:08 oscarshaitan

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

github-actions[bot] avatar Oct 06 '23 08:10 github-actions[bot]

Any update on this?

michalowskim avatar Nov 02 '23 17:11 michalowskim

Nop

PriyaranjanEuphotic avatar Nov 02 '23 18:11 PriyaranjanEuphotic

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

github-actions[bot] avatar Dec 04 '23 08:12 github-actions[bot]

no updates :(

oscarshaitan avatar Dec 13 '23 11:12 oscarshaitan

New semi-duplicate issue about that: https://github.com/Milad-Akarie/auto_route_library/issues/1825 I've added a workaround code there.

slavap avatar Jan 04 '24 06:01 slavap

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

github-actions[bot] avatar Feb 08 '24 08:02 github-actions[bot]