White screen appears on orientation changes in Android using jetpack compose

93 Views Asked by At

enter image description here

Hi all. I am facing an issue with my app. I am creating an app with Jetpack compose and on orientation changes the activity is recreating and before rotation the app goes in the white screen mode for 1-2 seconds. I know this is due to recomposition and I have tried putting every values in viewmodel + rememberSaveable but still I am facing this issue.

Any help would be appreciated. Thank you.

0

There are 0 best solutions below