SOLVED Hey :wave: Is it possible to fully clear th...
# compose
n
SOLVED Hey 👋 Is it possible to fully clear the backstack using navigation component on compose? If I set the destination at the bottom of the stack with
inclusive = true
I’m getting the following exception:
Copy code
androidx.navigation.NavGraph cannot be cast to androidx.navigation.compose.ComposeNavigator$Destination
The use case is a user that signs out, so I want to clear the whole backstack and then navigate to the login screen.
t
There’s an issue with navigation-compose alpha05. You should downgrade to alpha04 and wait for the fix.
n
That was quick and easy. Thank you 🙇
👍 1
Do you know if it’s possible to indicate the root of the NavGraph as PopUp destination as we used to in XML to clear the whole backstack no matter which composable is at the bottom of it?
t
Nothing that I know of. May be @Ian Lake can answer this question?
🙇 1