I'm migrating my code to the new Nav libraries, but I want some equivalent to commitAllowingStateLoss
like there is in FragmentTransaction. Any tips?
Thanks in advance!
I'm migrating my code to the new Nav libraries, but I want some equivalent to commitAllowingStateLoss
like there is in FragmentTransaction. Any tips?
Thanks in advance!
This error was occurring because I was loading a new Fragment inside of the activity, outside of the Navigation graph. I was then calling findNavController().navigate() after this, causing state loss.