MutableStateFlow inits value after I set a new one but need to be vice versa
In Kotlin, MutableStateFlow is a type of Flow that represents a value that can be updated and observed by multiple consumers. By default, MutableStateFlow initializes its value lazily, which means that the initial value is not set until the first observer subscribes to the flow.
If you need to set the initial value of a MutableStateFlow before any observers subscribe to it, you can use the tryEmit method to set the value. This method attempts to set the value of the flow immediately, and...