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
Currently, as far as I understood, there is no workaround to control when route is being popped or pushed or any other changes. For now it's only possible to know whether it has been popped or pushed etc.
What I actually need to do is to show dialog, when user tries to go to another screen with unsaved data, preventing the user from changing current route.
For now I can see only one solution - add PopScope... BUT for WEB its the issue
The problem here is to control back OR refresh button being pressed (html.BeforeUnloadEvent works only for refresh) + PopScope doens't work for navigateTo
If someone implemented such thing your help would be appreciated. Or if there is a solution with auto_route I think it would be nice to add it to examples.
The text was updated successfully, but these errors were encountered:
Currently, as far as I understood, there is no workaround to control when route is being popped or pushed or any other changes. For now it's only possible to know whether it has been popped or pushed etc.
What I actually need to do is to show dialog, when user tries to go to another screen with unsaved data, preventing the user from changing current route.
For now I can see only one solution - add
PopScope
... BUT for WEB its the issueThe problem here is to control back OR refresh button being pressed
(html.BeforeUnloadEvent
works only for refresh) +PopScope
doens't work for navigateToIf someone implemented such thing your help would be appreciated. Or if there is a solution with auto_route I think it would be nice to add it to examples.
The text was updated successfully, but these errors were encountered: