Hi, i using a model class like this
SomeClass(
var badge: MutableState<Badge?> ......
)
But when i trying to update the badge property it Recompose even if the Badge Object is same.
t
Tash
07/09/2021, 6:50 AM
how are you updating badge?
Tash
07/09/2021, 6:52 AM
make sure you're updating
badge.value
and not the
badge
MutableState
instance. might be easier to use property delegates and write it as
var badge by mutableStateOf<Badge?>
instead so that you can read/write to it as a regular