Ali Golmirzaei
01/16/2023, 2:55 PMHorizontalPager
and do some actions on visiting and leaving the page. So I put a DisposableEffect
inside my page compose function and trying to achieve my requirement. But it seems that the HorizontalPager
which is using LazyRow
internally is loading offscreen pages. Do you know how to fix this issue? I know I can use pager state to figure out current page and move my logic to there, but I prefer to hold my logics inside the page content as it is also used somewhere else out of pager too. I also tried to use itemSpacing
to force pages be fully offscreen but it didn't solve the problem.yschimke
01/16/2023, 6:16 PMyschimke
01/16/2023, 6:16 PMAli Golmirzaei
01/16/2023, 6:19 PM