Michael Paus
12/12/2024, 6:32 PMwindow.bindToNavigation(navController)
for wasmJs in 1.8.0-alpha01. The binding part seems to work. The back-button of the browser now works in a similar way to the back-button on Android with one exception. Calls to popUpTo
seem to be ignored. I am using the following function to navigate
fun navigate(route: Any) {
navController.navigate(route) {
if (route == Favorites || route == Info || route == Map || route == Schedule) { // Primary screens
popUpTo(navController.graph.id) { inclusive = true }
}
}
}
which should clear the back stack when I navigate to any primary screen. This seems to work in Android but in the browser the stack does not seem to be touched. Does anybody know what is going on here?Konstantin Tskhovrebov
12/12/2024, 7:15 PMeygraber
12/12/2024, 9:32 PMeygraber
12/12/2024, 9:33 PMsyncWithHistory
function is the part you might be interested inMichael Paus
12/13/2024, 2:29 PMKonstantin Tskhovrebov
12/13/2024, 2:39 PMMichael Paus
12/13/2024, 2:46 PMKonstantin Tskhovrebov
12/13/2024, 3:42 PMKonstantin Tskhovrebov
12/13/2024, 3:44 PMKonstantin Tskhovrebov
12/13/2024, 3:45 PM