Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70617

Bug in navigation stack in ionic4

$
0
0

@juny58 wrote:

I have found out a bug probably in ionic 4 navigation stack. Previously opening any page from anywhere as many times would stack it in the navigation stack as many times and that too retaining the scxcroll position. It is putting the URLs in the stack now but if you go to one of the URLs back from any page, the navigation stack removes every history after that index of the page to be opened from the array of stack.

Suppose we have 4 pages viz. page1, page2, page3 and page4. The flow of the navigation is as simple as the path page1>page2>page3>page4. If I log the navigation stack, it would look something like,
0: page1URL
1: page2URL
2: page3URL
3: page4URL

Now that we are on the page4, if we intend to go to page2, the stack would look like,
0: page1URL
1: page2URL

So, it splices the index 2 & 3 and shows the page2. But the default behaviour should be to add the page2 again in the index 4. So, it should look like,
0: page1URL
1: page2URL
2: page3URL
3: page4URL
4: page2URL

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70617

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>