Nikita Klimenko [JB]
10/02/2020, 12:06 AMArkadii Ivanov
10/02/2020, 1:23 PMStore
and subscribe in the Bootstrapper
• Bind the database to the Store
intents using binder
(or manually)
• Explicitly notify from other places where database is updated (e.g. bind writing Stores
labels to listening Stores
intents)
Basically you should choose one of themArkadii Ivanov
10/02/2020, 1:25 PMArkadii Ivanov
10/02/2020, 1:27 PMNikita Klimenko [JB]
10/02/2020, 1:38 PMArkadii Ivanov
10/02/2020, 1:56 PMStores
) and you want to reflect database changes by listening to it in the Store
, then yes - correct.
But if you are doing all the changes in a single Store
(just one Store
writing and reading the database), then I would go with either the first approach or manually inserting data to the state.Arkadii Ivanov
10/02/2020, 1:56 PM