Join Slack
how can I clear compose navigation `BackStack`?
# compose
m
Mjahangiry75
03/11/2021, 4:38 PM
how can I clear compose navigation
BackStack
?
i
Ian Lake
03/11/2021, 5:38 PM
What are you trying to do?
Ian Lake
03/11/2021, 5:39 PM
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
Mjahangiry75
03/12/2021, 12:24 PM
I was trying to clear bacstack before going to next composable.
Mjahangiry75
03/12/2021, 12:25 PM
I tried
popUpTo
and it worked correctly, thank you for helping.
4
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by