Skip to content

Commit

Permalink
Avoid unnecessary pager flow creation in feeds observable
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Dec 23, 2023
1 parent 9377e72 commit 56451ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class FeedsPresenter(
selectedFeed to postsType
}
.flatMapLatest { (selectedFeed, postsType) ->
rssRepository.numberOfPinnedFeeds().map { numberOfPinnedFeeds ->
rssRepository.numberOfPinnedFeeds().distinctUntilChanged().map { numberOfPinnedFeeds ->
val postsAfter = postsAfterInstantFromPostsType(postsType)

val feeds =
Expand Down

0 comments on commit 56451ac

Please sign in to comment.