Hi there, I am adding destination to my navGraph p...
# navigation-architecture-component
i
Hi there, I am adding destination to my navGraph programatically.
Copy code
val dest = navController.navigatorProvider.getNavigator(
    FragmentNavigator::class.java
)
    .createDestination().apply {
        id = uniquesId
        setClassName(HomeFragment::class.qualifiedName!!)
        label = component.mainTitle ?: "NoTitle given"
    }

//       dest.putAction(actionID, navGraph.startDestination)
navGraph.addDestination(dest)
but when a configChange occurs the app crashes because it cannot find the destination with uniquesId. Any ideas why?