Please tell me where to dig the position of the li...
# compose
v
Please tell me where to dig the position of the list is not saved Paging 3.0 + paging-compose. PageSource ViewModel LazyColumn
a
most probably the issue is with the fact that the scroll is restored while the paging didn’t yet load the items as the items are loaded asynchronously. while we don’t have something similar to this in compose you can workaround it with not emitting LazyColumn at all while there are no items in LazyPagingItems. something like
if (model.itemCount == 0) { LoadingItem() } else { LazyColumn(…) }
1
🙏 1
v
@Andrey Kulikov It works. Thank you.
v
This issue might also be helpful https://issuetracker.google.com/issues/177245496
🙏 1