Created
April 7, 2024 04:45
-
-
Save LloydBlv/22d2a02330a2c831fab81f84c357bc66 to your computer and use it in GitHub Desktop.
Bad practice of exposing mutable state flow from viewmodel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RatesViewModel constructor( | |
private val ratesRepository: RatesRepository, | |
) : ViewModel() { | |
val state = MutableStateFlow(RatesUiState(isLoading = true)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment