Adam V
09/09/2023, 5:49 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? Is this just Compiler Magic that's seeping in?Stylianos Gakis
09/09/2023, 6:46 PMFrancesc
09/09/2023, 6:56 PMFrancesc
09/09/2023, 6:59 PMAdam V
09/09/2023, 7:00 PMAdam V
09/09/2023, 7:01 PMascii
09/09/2023, 8:32 PMtoPersistentList
everywhere is annoying.Francesc
09/09/2023, 9:42 PMFrancesc
09/09/2023, 9:43 PM