Is it possible to observe changes to a `SnapshotSt...
# compose
e
Is it possible to observe changes to a
SnapshotStateList
?
z
Yes, the same way as any other snapshot state. Take a look at the functions on Snapshot -
registerApplyObserver
could be useful if you already know the object you want to observe.
t
snapshotFlow
is also great for observing state changes in a LaunchedEffect
z
Yea and SnapshotStateObserver, but those are kinda overkill if you have a specific object you want to watch
e
Thanks. I kept coming back to
SnapshotStateObserver
, but like you said, overkill for my use case
171 Views