Revert "fix(ui): load new items from paging data"

This reverts commit f06d8ce05e1028e906374523541b4a6c36d2577c.
This commit is contained in:
junkfood 2024-03-10 21:49:57 +08:00
parent 098ec08663
commit fab99b27a1
No known key found for this signature in database
GPG Key ID: 2EA5B648DB112A34

View File

@ -28,7 +28,7 @@ fun LazyListScope.ArticleList(
onShare: ((ArticleWithFeed) -> Unit)? = null,
) {
for (index in 0 until pagingItems.itemCount) {
when (val item = pagingItems[index]) {
when (val item = pagingItems.peek(index)) {
is ArticleFlowItem.Article -> {
item(key = item.articleWithFeed.article.id) {
SwipeableArticleItem(