ra1nmak3r
09/22/2017, 9:55 PMdata class have problem with huge data? I mean, I'm using a data class in a RecyclerView and this class has some fields (all of them are primitive types) and when applying some animations when the user click in one of the items in the list these animations does not works properly.
But if I use a class instead of a data class, everything works fine and all animations are applied.anthonycr
09/22/2017, 10:02 PMequals and hashcode methods generated by the data class were very expensive.ra1nmak3r
09/22/2017, 10:12 PMra1nmak3r
09/22/2017, 10:14 PManthonycr
09/22/2017, 10:25 PMdata class the comparison now it’s checking field equality… so where class1 != class2, now maybe dataClass == dataClass2`. Might be helpful to wrap your data class in a ViewModel/ViewState like class for display in that list.