replace object with data object in search feature, simple format code for the reader

pull/913/head
hoangchungk53qx1 1 year ago
parent cd30ecf359
commit c52c4b88cd

@ -29,7 +29,7 @@ sealed interface SearchResultUiState {
*/
data object EmptyQuery : SearchResultUiState
object LoadFailed : SearchResultUiState
data object LoadFailed : SearchResultUiState
data class Success(
val topics: List<FollowableTopic> = emptyList(),

@ -76,8 +76,7 @@ class SearchViewModel @Inject constructor(
}
}
}
}
.stateIn(
}.stateIn(
scope = viewModelScope,
started = SharingStarted.WhileSubscribed(5_000),
initialValue = SearchResultUiState.Loading,

Loading…
Cancel
Save