Skip to content

Commit

Permalink
fix(ui): prefetch articleId when using Unread filter
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Feb 8, 2024
1 parent 0545723 commit a5846d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fun ReadingPage(
}
}

LaunchedEffect(readerState.articleId, pagingItems.size) {
LaunchedEffect(readerState.articleId, pagingItems.isNotEmpty()) {
if (pagingItems.isNotEmpty() && readerState.articleId != null) {
// Log.i("RLog", "ReadPage: ${readingUiState.articleWithFeed}")
readingViewModel.prefetchArticleId(pagingItems)
Expand Down

0 comments on commit a5846d2

Please sign in to comment.