Should I use multiple states per screen like this:...
# compose
a
Should I use multiple states per screen like this:
Copy code
private var screenState by mutableStateOf(ScreenState())
private var dialogOneState by mutableStateOf(DialogOneState())
private var lazyColumnState by mutableStateOf(LazyColumnState())
or only one?
c
I typically would have a single "state" that included all three of those. But thats just me.
c
On the other hand I would go with multiple states just like you have here in your example 😅
You will have more parameters in your topmost Composable functions but you do not have to worry about merging and then separating the values of one State object
a
thank you 🙂