nglauber
07/13/2021, 12:17 AMState for each field in ViewModel and simply access them from the screen.
3️⃣ Encapsulate these 10 fields in a data class, expose one single `Flow`/`LiveData` and each “setter” create a copy of this data class instance to update the state.
4️⃣ Encapsulate these 10 fields in a data class, each field is a state, ViewModel has an instance of this class and you simply access it from the screen.
5️⃣ Other (please explain)nglauber
07/13/2021, 12:19 AMColton Idle
07/13/2021, 1:53 AMtad
07/13/2021, 2:09 AMOleg Khotskin
07/13/2021, 3:30 AMgildor
07/13/2021, 5:57 AMFlow/StateFlow are not great as observable propertiesIt’s completely fine behaviour for observable property, otherwise you will get all those “unexpected behavior” not when you do this syncronously, but when you do this asyncronously