Hello folks. Is there a way to avoid MutableStateFlows posting the same value when the screen is rotated like what we have with SingleLiveEvent version of LiveData? I'm using this guy right here:
Copy code
private val _errorStateFlow = MutableStateFlow<State<Error>>(InitialError)
internal val errorStateFlow: StateFlow<State<Error>>
get() = _errorStateFlow
Since it is an Error StateFlow, everytime it posts something, i show a SnackBar on the screen but i just want to do this one time for each time the error occurs. Any thoughts on it? Appreciate ya 👍