adds the key to avoid applying to a separate navcontroller

This commit is contained in:
Vitor Pamplona
2024-07-21 11:32:08 -04:00
parent 52fef33662
commit 2ef2f0d1a5
@@ -100,7 +100,7 @@ fun AppNavigation(
) { ) {
val scope = rememberCoroutineScope() val scope = rememberCoroutineScope()
val nav = val nav =
remember { remember(navController) {
{ route: String -> { route: String ->
scope.launch { scope.launch {
if (getRouteWithArguments(navController) != route) { if (getRouteWithArguments(navController) != route) {