You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I previously asked this question, for which I ended up finding what I thought was an answer, however I later found many other issues.
What I'm trying to do is to have an iOS style bottom tabbed navigation with independent navigators on each tab, navigating to a named route within a tab will open it inside that tab, switching tabs will keep the navigation stack. of the previous tab intact and the new tab will have its own navigation stack.
The issue I'm having is that many of these routes take either parameters or arguments, but GetX handles these globally, and has only one instance of them, so even after adding the GetObserver to the navigator on each stack, if I switch tabs the state doesn't change and GetX still thinks I'm on the old tab, so I went further and started calling didReplace when tabs are switched, but that still didn't fully work.
At this point I'm not sure if I'm doing something wrong, or if GetX is just not meant to be used with nested navigation at all, or if there is some bug with named routes, so I'm looking for help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I previously asked this question, for which I ended up finding what I thought was an answer, however I later found many other issues.
What I'm trying to do is to have an iOS style bottom tabbed navigation with independent navigators on each tab, navigating to a named route within a tab will open it inside that tab, switching tabs will keep the navigation stack. of the previous tab intact and the new tab will have its own navigation stack.
The issue I'm having is that many of these routes take either parameters or arguments, but GetX handles these globally, and has only one instance of them, so even after adding the
GetObserver
to the navigator on each stack, if I switch tabs the state doesn't change and GetX still thinks I'm on the old tab, so I went further and started callingdidReplace
when tabs are switched, but that still didn't fully work.At this point I'm not sure if I'm doing something wrong, or if GetX is just not meant to be used with nested navigation at all, or if there is some bug with named routes, so I'm looking for help.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions