Also, what are the practical differences (if any) ...
# compose
e
Also, what are the practical differences (if any) between using
SnapshotStateList
and
Flow<List<T>>.collectAsState
?
z
To change the latter, you need to copy the whole list. You can mutate the former in place.
e
Interesting, I wasn't even considering that angle. From a compose standpoint, does
SnapshotStateList
allow for more granular recomposition?
z
I don't think so. It's effectively just a persistent immutable list stored in a mutable state, so all reads on the list are considered equal in terms of change notifications.