Skip to content

Commit

Permalink
Adjust sharing behavior in PackageListViewModel#selectedModulesFlow (#96
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lamba92 authored Feb 27, 2024
1 parent 93789c4 commit 2fc9f9a
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 @@ -101,7 +101,7 @@ class PackageListViewModel(private val project: Project) : Disposable {
) { 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 2fc9f9a

Please sign in to comment.