File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
app/src/main/kotlin/com/fibelatti/pinboard/features/posts/presentation Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ import com.fibelatti.pinboard.features.posts.domain.usecase.GetRecentPosts
3030import dagger.hilt.android.lifecycle.HiltViewModel
3131import javax.inject.Inject
3232import kotlinx.coroutines.CoroutineScope
33- import kotlinx.coroutines.flow.collectLatest
3433import kotlinx.coroutines.flow.launchIn
3534import kotlinx.coroutines.flow.mapNotNull
3635import kotlinx.coroutines.launch
@@ -48,7 +47,7 @@ class PostListViewModel @Inject constructor(
4847 scope.launch {
4948 appStateRepository.appState
5049 .mapNotNull { appState -> appState.content.find<PostListContent >() }
51- .collectLatest { content: PostListContent ->
50+ .collect { content: PostListContent ->
5251 val shouldLoadContent: Boolean = content.shouldLoad is ShouldLoadFirstPage ||
5352 content.shouldLoad is ShouldForceLoad ||
5453 content.shouldLoad is ShouldLoadNextPage
You can’t perform that action at this time.
0 commit comments