? Or does this not trigger a new recomposition because
equals
uses the reference?
n
Nick
02/16/2022, 4:06 PM
that won’t trigger a new composition if any of the underlying items in the array are changed. If you want to update based on if items change, you can use
mutableStateListOf
instead.
➕ 2
a
Adam Powell
02/16/2022, 4:14 PM
It will trigger invalidation if a new array is set even with the same values, for the reason you cite: arrays do not implement