Skip to content

Commit

Permalink
[ANDROAPP-5805] Add replay to mutable search flow in order to emit th…
Browse files Browse the repository at this point in the history
…e first value
  • Loading branch information
andresmr committed Feb 20, 2024
1 parent 8b90995 commit 885e672
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ import org.dhis2.form.model.FieldUiModel
data class SearchParametersUiState(
val items: List<FieldUiModel> = listOf(),
val minAttributesMessage: String? = null,
private val _shouldShowMinAttributeWarning: MutableSharedFlow<Boolean> = MutableSharedFlow(),
private val _shouldShowMinAttributeWarning: MutableSharedFlow<Boolean> = MutableSharedFlow(
replay = Int.MAX_VALUE,
),
val searchEnabled: Boolean = false,
val clearSearchEnabled: Boolean = false,
) {
Expand Down

0 comments on commit 885e672

Please sign in to comment.