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
Under certain conditions, my flow is such that I call Get.offAll() because I wish to remove all routes in between the current (including) and the route I am about to navigate to (i.e, the one passed as a parameter to offAll()). However, the screen I am about to navigate the user to includes a back icon which triggers a call to Get.back(). Since the stack was cleared, it does nothing at all. Basically, I'm looking for a way to replace Get.previousRoute with a route of my choice (typically it would be the home screen) in the event we got to the current route using Get.offAll() so that Get.back() would route the user there.
Is there an obvious way I'm missing that won't require writing custom code that checks whether Get.previousRoute can be navigated to?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all,
Under certain conditions, my flow is such that I call Get.offAll() because I wish to remove all routes in between the current (including) and the route I am about to navigate to (i.e, the one passed as a parameter to
offAll()
). However, the screen I am about to navigate the user to includes a back icon which triggers a call to Get.back(). Since the stack was cleared, it does nothing at all. Basically, I'm looking for a way to replaceGet.previousRoute
with a route of my choice (typically it would be the home screen) in the event we got to the current route usingGet.offAll()
so that Get.back() would route the user there.Is there an obvious way I'm missing that won't require writing custom code that checks whether
Get.previousRoute
can be navigated to?Thanks in advance,
Beta Was this translation helpful? Give feedback.
All reactions