brabo-hi
12/03/2021, 7:33 PMnavController.navigate("nextPage") {
popUpTo("currentPage") { inclusive = true }
}
//and
navController.navigateUp()
navController.navigate("nextPage")
Ian Lake
12/04/2021, 2:07 AMnavigateUp()
operation first (which is different from popBackStack()
in cases where you have deep linked into that destination or any other case where you don't have anything before the current destination on the back stack) then does a separate navigate()
operation after the navigateUp()
has completedIan Lake
12/04/2021, 2:09 AMbrabo-hi
12/06/2021, 5:53 PMIan Lake
12/06/2021, 5:56 PMpopUpTo
is the correct code to be usingbrabo-hi
12/07/2021, 7:03 PM