How to update uiState in ViewModel when an event occurs?
I’m just learning how to manage UI States. In the following example I’m using combine() for 2 of my use cases and they are collected when the app starts. But what if I want to collect a 3rd different use case when the user clicks a button, for example. How could I update the state in this case. Should I use a separate and different StateFlow? Thanks in advance!