MainScreenView is recomposing every time when user comes back from DetailScreen
Hi @SEAbdulbasit, Currently, when the user comes back from DetailScreen to MainScreenView, it recomposes MainScreenView every time. This resulting into inconsistent UI state. This is probably due to the manual navigation to composable screens. I could see in MainView.kt file some code is commented that handles navigation using Jetpack Navigation.
I wanted to discuss that, can we uncomment this code or any other scenario is there due to which it is commented?
Hmm, now i forgot why i commented this code. Can you give it a try and see if there is any side effect ?
Thanks. I will uncomment that piece of code and if everything works fine, will create a pull request for the same.