routemaster
routemaster copied to clipboard
Cupertino tabs - changing routes programatically for not selected tabs
Hi,
Is there a way to programatically change a route for not a current tab?
Let's say the current tab is tab2 and I want to pop some pages in the tab1. Is it possible?
Another option which would be helpful: is there a way to popUntilRoot when the user changes tabs? That would mean it woudn't be preserving a current path when changing tabs. There will be always the initial path for a given tab after changing it?
Thank you for all your great work and looking forward to learn answers to my questions.
mat
Hello, no there isn't, but you could potentially access navigators for those tabs - could you explain what your use case is?
Hey Tom,
Thank you very much for getting back to me. I'd like to reset them programatically (popUntilRoot or something like it) in certain scenarios. Imagine that there is a few pages in a navigator stack for a given tab but sometimes it might be better from UX perspective when the user can be presented with a root page instead when they select the given tab. Do you think there is a way for it? I mean I found one hacky way of doing it but it is not ideal...