Sean Proctor
12/07/2023, 11:43 AMTextField
data in a ViewModel that is shared between Compose and non-Compose targets?Sean Proctor
12/07/2023, 11:49 AMMutableState
. There's no validation done while changing values. I'm thinking to use a MutableStateFlow
to get the initial values and only pass them back to the VM when submitting the form.Zach Klippenstein (he/him) [MOD]
12/07/2023, 4:03 PMSean Proctor
12/07/2023, 4:09 PMMutableStateFlow
like .collectAsState(Dispacters.Main.immediate)
should avoid any async issues. Do you know if that's true?Zach Klippenstein (he/him) [MOD]
12/07/2023, 4:17 PMSean Proctor
12/07/2023, 4:21 PM