Skip to content

Commit

Permalink
Adjust sharing behavior in PackageListViewModel#selectedModulesFlow (#95
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lamba92 authored Feb 27, 2024
1 parent 2667059 commit 1054d33
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class PackageListViewModel(
) { selectedModules, modulesByIdentity ->
modulesByIdentity.filterKeys { it in selectedModules }.values.toList()
}
.shareIn(viewModelScope, SharingStarted.Lazily)
.shareIn(viewModelScope, SharingStarted.Lazily, 1)

private val searchQueryMutableStateFlow = MutableStateFlow("")
val searchQueryStateFlow = searchQueryMutableStateFlow.asStateFlow()
Expand Down

0 comments on commit 1054d33

Please sign in to comment.