adds the key to avoid applying to a separate navcontroller
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user