How to get to the previous location? #241
Replies: 5 comments
-
Building some logic around a |
Beta Was this translation helpful? Give feedback.
-
It shouldn't be updated until a new/different route is pushed. |
Beta Was this translation helpful? Give feedback.
-
Mmm I'm not sure this is desirable. My question was rather between (in the case of pressing the back button):
Also the behavior described above if for a simple back button press but mind that on the web user can do really what they want. Here is another interesting question: what happens if the user reload the page on the web? The app is restarted so the state is lost therefore I'm not saying it's not possible. Choices can be made and a system could work. The issue is that what you end up would not be very intuitive and would behave weirdly in certain edge cases (which the dev might not take into account before a user run into the issue, which is the worse kind of bugs) |
Beta Was this translation helpful? Give feedback.
-
OK. |
Beta Was this translation helpful? Give feedback.
-
@superakabo this functionality should be accessible to you by passing in a |
Beta Was this translation helpful? Give feedback.
-
It is very easy to get the current location by doing
It will be nice to have a simpler implementation for the previous location(s) as well by doing
Beta Was this translation helpful? Give feedback.
All reactions