Solito Router - not added to the navigation history #190
Replies: 2 comments 5 replies
-
i’m confused. step 2 and 3 are the exact same URL? |
Beta Was this translation helpful? Give feedback.
-
We ran into the same issue. We have three tabs, and each tab is a stack navigator. In the stacks we render content which is defined mostly by the parameters instead of the screen name. For example there might be User screens, which link to other User screens, and those should be added to history and stacked with a transition on native. Think about navigating Instagram profiles, a stack which shows Profile screens defined by profile id. Here's the feature in React Navigation docs: https://reactnavigation.org/docs/navigating/#navigate-to-a-route-multiple-times We have solved this by using But anyhow, thanks for the (otherwise) awesome library! 🙏 |
Beta Was this translation helpful? Give feedback.
-
Use case:
Expected:
when the back button is click (Web or Expo) - the user should do the previous screen (Step 2) & then when the back button is clicked again, go to the /dashboard
Observed:
user goes to the /dashboard screen & misses the screen in step 2
I think the router is doing a client side state change and not adding to the router history. Due to this, if the router is routing to the same screen with different params, the interim screens will be skipped when the back button of browser or Expo app is clicked.
Is anyone else facing this issue with Solito Router?
Beta Was this translation helpful? Give feedback.
All reactions