I know this topic may be a bit “controversial”, but I was wondering if the router in vNext will support some kind of stack functionality. As far as I know the current implementation doesn’t have that kind of feature. If I’m wrong and there is a way of doing this, please let me know
Let me explain what I mean:
When navigating from one route to another there should be some kind of option to decide whether the current view will be kept in background and the new view will “overlay” the old one or whether the stack will be cleaned before.
To be more specific:
Imagine you are in a search-view where you entered multiple search criterias. You see multiple search results and click one and so navigate to the detail-view of this record. Now you find out that you’ve clicked to wrong one. You navigate back to the search-view. Now you have to enter the search criteria once again … In this case it would be great if the router just removes the detail-view and shows the search-view, which was kept in background, again.
To prevent that the stack will increase infinite there could be a max stack size …