how can I clear compose navigation `BackStack`?
# compose
m
how can I clear compose navigation
BackStack
?
i
What are you trying to do?
Generally, you'll want to use one of the
popUpTo
flags to clear destinations off your back stack as you navigate to a new destination: https://developer.android.com/jetpack/compose/navigation#nav-to-composable
m
I was trying to clear bacstack before going to next composable.
I tried
popUpTo
and it worked correctly, thank you for helping.