https://kotlinlang.org logo
Title
b

brabo-hi

02/13/2022, 8:07 PM
hi all, what is the difference between
navController.navigate("next") {
    popUpTo("current") { inclusive = true }
}
and
navController.navigateUp()
navController.navigate("next")
b

brabo-hi

02/13/2022, 8:27 PM
just to fix my question , the second one is
navController.navigateUp()
navController.navigate("next")
is the first operation an atomic of the two above
what i notice is sometimes when i use
popUpTo("current") { inclusive = true }
and move to next page, whenever i hit back button, the previous page still there