I have a viewpager2 with multiple fragments in FragmentStateAdapter. Whenever I try to open a new fragment and then go back to my current one with viewpager2, I get an exception
it can be fixed by viewPager2.isSaveEnabled = false
viewPager2.isSaveEnabled = false