Ngọc Nguyên Nguyễn
06/24/2022, 7:36 AMStylianos Gakis
06/24/2022, 8:08 AMdata
a data class? Could you use .copy on it instead of .apply to make changes to one of the fields? As I see it, items
inside of it is a var
, since you’re re-assigning it a new value. Then when doing emit(), since you may be emitting the same data object, compose may not be picking up on the new value since it considers it to be the same item. Could you either show how CommentItems looks like to make this easier, or at least make everything a val in there to see what that does.Ngọc Nguyên Nguyễn
06/24/2022, 8:34 AM