Adam V
09/08/2023, 4:15 PMstate
is a MutableState
containing a list, and the list is being consumed in a Lazy container of some kind
var x = state.value
items(x, ...) {
...
Does Not cause recomposition on every element in the list, while
items(state.value, ...) {
...
Does force all items to recompose.
In theory, moving state.value
into its own local variable that is immediately referenced should not cause any difference, but it clearly appears to be the case here. What am I missing here? I understand that this is more of a Compose question than a Kotlin question, but it feels language appropriate.