Getting this error: ```java.lang.IllegalArgumentE...
# compose
c
Getting this error:
Copy code
java.lang.IllegalArgumentException: navigation destination -2074115716 is not a direct child of this NavGraph
Simple repro code in thread
Copy code
class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            val navController = rememberNavController()
            CoilErrorTheme {
                NavHost(navController = navController, startDestination = "a") {
                    composable("a") { ScreenA(navController) }
                }
            }
        }
    }
}

@Composable
fun ScreenA(navController: NavController) {
    Row() {
        Button(onClick = { }) {
            Text(text = "asdf")
        }
    }
}
Fack. I got hit by this again... https://issuetracker.google.com/issues/188860479