Is there any "official" connection between Datasto...
# compose
a
Is there any "official" connection between Datastore and compose?
c
DataStore returns
Flow
, which can be collected in Compose with
collectAsState
. I’m not sure how much more integrated it even could get
2
a
Oh well, something like
rememberDataStorePreference<>()
👀 1
z
Surely not difficult to make that, but you got to ask yourself if you want your views to be responsible for storing data. What about testing and reusing that preference?
3