-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get currentDestination using DestinationsNavigator ? #693
Comments
Based on what I came up with as a solution, I guess it should be something like this. You should directly pass the destination. navigator.navigate(NextScreenDestination) { |
Yes that could be a solution, this composable is used by many destination, it would require to add a new parameter As DestinationsNavigator is meant to be a wrapper around NavController, it could be nice to have currentDestination in it as well |
Previously I used to pull it off like this: private fun executeNavigation( However, it is no longer available in the v2. Oh and btw, I just submitted a new issue, could you please revise it and tell me if you have met the problem as well? |
I'm not using v2 sorry :/ |
Hello !
My current use case is something like this, navigating to another destination and removing the current one from the backstack, I don't see any currentDestination using DestinationsNavigator.
The text was updated successfully, but these errors were encountered: