07/03/2022, 6:11 AM
MutableStatOf Data Class not creating re-composition in Composable I am struggling to understand what is the best way to get this to work. I have some input fields and I created a TextFieldState to keep all the state in one place. But it is not triggering a re-composition of the composable so the state never updates. I saw this stack overflow answer on a similar question, but I just find it confusing and it doesn't make sense to me Here is the code: The Composable: @Composable fun AddTrip ( addTripVm: AddTripVm = hiltViewModel() ) { var name =...