google / accompanist

A collection of extension libraries for Jetpack Compose
https://google.github.io/accompanist
Apache License 2.0
7.38k stars 596 forks source link

Page Recomposition in Horizontal Pager #1656

Closed ashutosh-sharechat closed 1 year ago

ashutosh-sharechat commented 1 year ago

Bug Description While using HorizontalPager, the pages(current+adjacent) get recomposed every time a page is scrolled. I have static data in all the pages and I don't want them to recompose. I tried providing the key to the HorizontalPager but it didn't work.

Steps to reproduce

Additional Information library version used: `0.25.0

bentrengrove commented 1 year ago

Hello

Accompanist Pager is now deprecated as there is a Pager composable available in Compose Foundation. Can you please retest your issue using the Compose Foundation Pager and if it still exists, file an issue at https://goo.gle/compose-feedback.

Thank you.