Is your feature request related to a problem? Please describe.
I would like to be able to create a (Mutable)Store for local-only data.
The goal is to replace the Repositories with Stores; the issue comes when I can't write directly to a Store that is not Mutable, but to create a MutableStore I need an Updater and a Bookeeper
Describe the solution you'd like
val localStore: MutableStore =
StoreBuilder
.from(sourceOfTruth) // no fetcher
.build() // it returns a MutableStore, because no Fetcher is declared
Describe alternatives you've considered
- Keep repositories for local only data -> different approaches in the code-base
- Pass local data source directly to the use case -> no 🙅🏻♂️
- Create a
LocalStore in the project, which would be a clone of Store, but with local data only -> it would be confusing, it would still behave differently from the original Store, without in-memory cache and it would need to be maintained "manually"
Additional context
none
Is your feature request related to a problem? Please describe.
I would like to be able to create a
(Mutable)Storefor local-only data.The goal is to replace the Repositories with Stores; the issue comes when I can't write directly to a
Storethat is not Mutable, but to create aMutableStoreI need anUpdaterand aBookeeperDescribe the solution you'd like
Describe alternatives you've considered
LocalStorein the project, which would be a clone ofStore, but with local data only -> it would be confusing, it would still behave differently from the originalStore, without in-memory cache and it would need to be maintained "manually"Additional context
none