Skip to content

Commit

Permalink
chore: remove code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
drgnchan committed Jan 1, 2025
1 parent 4691be9 commit 2a6d71c
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class ReadingViewModel @Inject constructor(
private val currentFeed: Feed?
get() = readingUiState.value.articleWithFeed?.feed

// 添加一个新的属性来保存初始的文章列表状态
private var initialArticleItems: List<ArticleFlowItem> = emptyList()

fun initData(articleId: String) {
Expand Down Expand Up @@ -149,7 +148,6 @@ class ReadingViewModel @Inject constructor(
}

fun prefetchArticleId(pagingItems: ItemSnapshotList<ArticleFlowItem>) {
// 首次加载时保存初始列表
if (initialArticleItems.isEmpty()) {
initialArticleItems = pagingItems.items
}
Expand Down

0 comments on commit 2a6d71c

Please sign in to comment.