I have an android compose app that is set up with a single activity that uses NavController to navigate between screens.
However, when I rotate the screen (make a configuration change) the screen resets to the startDestination
specified in the NavHost
.
How can I preserve the nav state between configuration changes?