Join Slack
Powered by
if i observe a state data class in compose, and in...
# 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
Have you read this by chance?
https://dev.to/zachklipp/two-mutables-dont-make-a-right-2kgp
m
myanmarking
01/08/2022, 12:32 PM
will do. thanks!
myanmarking
01/08/2022, 1:26 PM
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
Zach Klippenstein (he/him) [MOD]
01/10/2022, 8:35 PM
You can make as many changes to as many snapshot state objects as you want within a transaction/mutable snapshot
Open in Slack
Previous
Next