I have a composable that represents a screen, with a list of items, a fab to add new items, edit buttons, delete buttons, so like 6 things I'm passing into this screen from the viewmodel
a
Adam Powell
02/27/2021, 9:54 PM
if you post the code we can give some recommendations
seems ok in general, you might group those params into an interface and pass a single object implementing it. Maybe that's the ViewModel itself, maybe not. Depends on how much other responsibility your ViewModel takes on
g
Gabriel
02/27/2021, 10:25 PM
Fair play, I can see a couple of ways of improving anyway, creating some composables higher up and passing them through into slots