What would be the best way to react to
mutableStateListOf
changes in effects?
Say, I have
Parent
which has state
remember { mutableStateListOf<Int>() }
which can be changed by one of its children.
Parent
also has an effect (let’s say
DisposableEffect
) reading changes to the list, like
DisposableEffect(list){/* ... */}
. But that effect won’t be called more than once, because
list
won’t change instance (
SnapshotStateList
), even if items are added.