Is there any "official" connection between Datastore and 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