Is it a performance issue, if i put mutableState fields in model class which is use in lazyColumn items?
d
Dominaezzz
02/28/2021, 1:17 PM
As supposed to what? Are there any other methods to populate a LazyColumn?
s
Shakil Karim
02/28/2021, 4:30 PM
@Dominaezzz I mean something like this
class UIModel {
someField by mutableStateOf(true)
otherField : String
}
@Composable
fun ListItem(uimodel: UIModel) {
Box {
clickListener {
someField = false
}
}
}
d
Dominaezzz
02/28/2021, 4:53 PM
Ohhh. No there isn't a performance issue you should be particularly worried about.