Jetpack Compose Pager Views/Screens Caching

105 Views Asked by At

I have a HorizontalPager implementation which loads composable screens as different positions are scrolled through. I would like to have the pager load the screens only once, and have them cached so that no re-compositions or redrawing is happening again on subsequent loads/visits. I've already fiddled with the beyondBoundsPageCount parameter but it's not achieving the behavior I would like for some reason. (i.e: re-compositions are happening again on every screen visit)

0

There are 0 best solutions below