@Louis Pullen-Freilich [G] what's the reason for mutability in
Colors
? wouldn't it be better if it was a completely immutable class?
l
Louis Pullen-Freilich [G]
03/15/2021, 3:52 PM
Yes typically immutability is good (and would help avoid issues like this) but in the case of colors there are very large performance benefits from having it mutable - it means that if you are animating one color (such as primary) then only components that are actually using that color will be recomposed, instead of every component in the application