Questions about AutoRoute's nested routing snippet #65
Replies: 3 comments 5 replies
-
The nesting happens in AutoTabsRouter. The child of the builder will change based on it is books/* or Settings I will leave the other questions to the package author. |
Beta Was this translation helpful? Give feedback.
-
hey all, to address 2.,
when using @Milad-Akarie -sama to chime in |
Beta Was this translation helpful? Give feedback.
-
@InMatrix in a StackRouter navigate will check if the route already exists in stack then pops until that route and updates it otherwise it pushes it as a new entry. Updating the route includes updating it's inner/sub tree controller if it has one. let's say we have a root level route as for your third point, it was enhanced in the latest release and the following code will work the same. context.navigateTo(
BooksRoute(tab: _tabs.elementAt(index)),
); |
Beta Was this translation helpful? Give feedback.
-
I was reviewing the nested routing snippet for AutoRoute and had a few questions and observations:
navigateTo
method (L124). I was curious what is the advantage of usingnavigateTo
overpush
.AppRoute
needs to be specified. I tried to change the code to the following:While the tab switching still worked, the URL stopped to reflect the tab selection. I'd like to understand what had caused that. Thanks!
Cc: @theweiweiway @Milad-Akarie @chunhtai
Beta Was this translation helpful? Give feedback.
All reactions