Skip to content

Commit

Permalink
Move image call to combine block
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaskioko committed Nov 19, 2023
1 parent 3f6967b commit 200ad30
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ class DiscoverStateMachine(
}
}

collectWhileInStateEffect(showImagesRepository.updateShowArtWork()) { _, _ ->
/** No need to do anything. Just trigger artwork download. **/
}

on<ReloadCategory> { _, state ->
// TODO:: Implement reloading category data
state.noChange()
Expand Down Expand Up @@ -86,7 +82,8 @@ class DiscoverStateMachine(
discoverRepository.observeShowCategory(Category.POPULAR),
discoverRepository.observeShowCategory(Category.ANTICIPATED),
discoverRepository.observeShowCategory(Category.RECOMMENDED),
) { trending, popular, anticipated, recommended ->
showImagesRepository.updateShowArtWork(),
) { trending, popular, anticipated, recommended, _->
DataLoaded(
trendingShows = trending.getOrNull().toTvShowList(),
popularShows = popular.getOrNull().toTvShowList(),
Expand Down

0 comments on commit 200ad30

Please sign in to comment.