I’m using navigation-compose 2.4.0-beta02. I open ...
# compose
a
I’m using navigation-compose 2.4.0-beta02. I open dialog destination and then restart application process. After restart that dialog is not visible but it looks like it’s still in backstack (I have to press back button 2x to leave the screen). Is this some known bug?
😭 1
Copy code
NavHost(
  navController = controller,
  startDestination = "one"
) {
  composable("one") {
    Button(onClick = { controller.navigate("two")  }) {
      Text("go to 2")
    }
  }
  composable("two") {
    Button(onClick = { controller.navigate("dialog") }) {
      Text("go to dialog")
    }
  }
  // restart process when this destination is active
  dialog("dialog") {
    AlertDialog(
      title = { Text("Dialog") },
      buttons = {},
      onDismissRequest = { controller.navigateUp() })
  }
}