I've been running into some performance issues wit...
# compose
l
I've been running into some performance issues with HorizontalPager rebuilding too often (the same happens with a VerticalPager) and decided to debug. Initially, I realized that using `pagerState.pageCount`in a Composable caused repeated rebuilds. I tried to recreate a very simple version of this in a separate project, but surprisingly the issue was not present. I added more and more components from my original project until I was able to recreate the issue here. Running the program and looking at the logs, one can see constant recomposition due to the "Rebuilt" message printing over and over again. Commenting out line 67 stops the constant recomposition. I'm not sure I understand why this happens or if this is already documented somewhere, and would appreciate some insight.