<Android Jetpack Compose : HorizontalPager's pageC...
# stackoverflow
r
Android Jetpack Compose : HorizontalPager's pageContent called multiple times I am trying to implement the following UI using ScrollableTabRow(), HorizontalPager(), and LazyColumn(), where LazyColumn will be available inside HorizontalPager as a pageContent.

https://i.stack.imgur.com/HSf63.png▾

So now the problem is when I swipe between pages of HorizontalPager or when I select any tab from the ScrollableTabRow, the pageContent (Text Composable in below code example) is called multiple times, and because of that, Composable...