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
Describe the bug
Let's say we've login flow, and once the user successfully logs in, they land on the main screen. However, when setting up two navigation groups within a NavHost, I'm encountering an issue where the start destination item in the bottom navigation isn't being automatically selected when navigating to that group route.
To Reproduce
Create two groups with one being BottomNavigation
But when navigating to the initial route destination of the group, it works.
navigator.navigate(AppScreen.Main.Home.route)
Expected behavior
When moving to the destination to a group, the initial route of group should correspond to the initial route, correct?
I believe in Jetpack Compose Navigation, this functionality operates by navigating to the navigation route. But here i have to navigate to the initial route of the group.
Since PreCompose treats the group as a single route, so the currentRoute when you navigate to AppScreen.Main.route will be AppScreen.Main.route, not AppScreen.Main.Home.route, a workaround is to check both AppScreen.Main.route and AppScreen.Main.Home.route.
It can be fixed by changing currentRoute to the actual scene behind the group, but this will change the current behavior and I wonder if anyone is using such a behavior.
Describe the bug
Let's say we've login flow, and once the user successfully logs in, they land on the main screen. However, when setting up two navigation groups within a NavHost, I'm encountering an issue where the start destination item in the bottom navigation isn't being automatically selected when navigating to that group route.
To Reproduce
Create two groups with one being BottomNavigation
And BottomAppBar.kt
But when navigating to the initial route destination of the group, it works.
Expected behavior
When moving to the destination to a group, the initial route of group should correspond to the initial route, correct?
I believe in Jetpack Compose Navigation, this functionality operates by navigating to the navigation route. But here i have to navigate to the initial route of the group.
Minimal reproducible example
Here's Github Repo Link - https://github.com/iamnaran/jellyfish/tree/main
The text was updated successfully, but these errors were encountered: