loloof64
12/31/2021, 9:20 AM@Composable
code, but don't know what. Because when I rotate the device, the value of pageIndex
switches between two values instead of keeping the same value. More in 🧵@Composable
. pageIndex
is saved with rememberSaveable
, and I have to use some logic inside SideEffect
.if
clause : if in portrait, will only update MyPortraitComposable
otherwise will only update MyLandscapeComposable
. But I don't know how to overcome the issue.