Hi there,
I am building an app with the ionic tabs navigation.
Everything works perfectly. However…
When I navigate using the tabs-menu that Ionic created for me, the history doesn’t get cleared. It seems like there is a history stack for every single tab.
Simple example: when I have two tabs: Tab A and Tab B. When I am on Tab A and go on that tab to page 2 inside tab A, everything is fine. But then, when I open Tab B. And go back to Tab A. Page 2 is still active, in stead of page 1 that Tab A is linked to.
I used IonViewDidLeave (and then .backToRoot command) to bypass this, but now I want to reload the first page of each tab when I click on the tab. Anyone have any idea how to do this? So basically clicking on a tab, should open in the same navigationstack or clear the history of the other navigation stacks.
Already found this: Tabs navigation + unique navigation history stack but couldn’t find out how to add this to my current project (latest Ionic version)