https://kotlinlang.org logo
#compose
Title
# compose
m

myanmarking

01/08/2022, 11:24 AM
if i observe a state data class in compose, and inside i have a snapshotlist. To recompose on list changes i just need to change the list, regardless of emitting or not a new state. Is this right ?
c

Colton Idle

01/08/2022, 12:29 PM
m

myanmarking

01/08/2022, 12:32 PM
will do. thanks!
ok. then i ask. Is it possible to make multiple changes to the snapShotList within a single ‘transaction’ ?
z

Zach Klippenstein (he/him) [MOD]

01/10/2022, 8:34 PM
Yes
You can make as many changes to as many snapshot state objects as you want within a transaction/mutable snapshot