Hello everyone, I have a question if I have a list...
# compose
r
Hello everyone, I have a question if I have a list with X objects and If I change a property (with copy() ) on that list and then resubmit it on a LazyColumn. The LazyColumn will recompose every single item because I added a new list or it is smart enough to understand the that only 1 item changed and it will skip the recomposition on the other elements ?
m
I believe LazyColumn by default using index for the key for remembering the composition. You need to create an item key to avoid the recomposition. https://developer.android.com/jetpack/compose/lists#item-keys