Hi guys; I’m trying to use Channels and Flows for ...
# coroutines
a
Hi guys; I’m trying to use Channels and Flows for an MVVM with State implementation. In the specific, I have a Login page, with username and password, and a button. Username and Password are backed up by a ConflatedBroadcastChannel, and the login button is a Channel<Unit>. The question is: how can I observe both the channels in a way that whenever username and password change I can emit a new state containing the result of the local validation for the fields and then when the button is pressed the network validation (wrapped in a usecase) is fired and a new state for “Login success” is emitted too?