John Aoussou
11/03/2021, 2:42 AMnilTheDev
11/03/2021, 2:44 AMmutableStateOf
in any composable. All states and events are hosted in the viewModel and exposed with flows
.John Aoussou
11/03/2021, 2:48 AMnilTheDev
11/03/2021, 2:49 AMNathan Castlehow
11/03/2021, 2:51 AMNathan Castlehow
11/03/2021, 2:53 AMval isExpanded = remember { mutableStateOf(false)}
This state can then be updated independent of your view model.
Overall what you put inside your view model vs what you keep inside a composable comes down to what it is and what architecture you are going for.Nathan Castlehow
11/03/2021, 2:55 AMJohn Aoussou
11/03/2021, 3:16 AMNathan Castlehow
11/03/2021, 3:28 AMSteffen Funke
11/03/2021, 7:31 AM