TravelApp-KMP icon indicating copy to clipboard operation
TravelApp-KMP copied to clipboard

MainScreenView is recomposing every time when user comes back from DetailScreen

Open Sushant-Hande opened this issue 1 year ago • 2 comments

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?

Sushant-Hande avatar Dec 15 '24 17:12 Sushant-Hande

Hmm, now i forgot why i commented this code. Can you give it a try and see if there is any side effect ?

SEAbdulbasit avatar Dec 20 '24 06:12 SEAbdulbasit

Thanks. I will uncomment that piece of code and if everything works fine, will create a pull request for the same.

Sushant-Hande avatar Dec 28 '24 12:12 Sushant-Hande