Does my use case fit the library? For now, I don'...
# store
a
Does my use case fit the library? For now, I don't have any stream responses for local storages or my remote APIs. I want to observe a Query in my app, e.g. for a key X. When I send a StoreWriteRequest to Store and it succeeds (in some way, maybe just locally), then I want my initial query to receive the new value. Do I need to implement this logic myself via a Source of Truth or can I already achieve this with just a MutableStore and the caches?
Well, I think that's exactly what the Source of Truth is made for and I need to implement it myself. Without a source of truth my queries only get 1 response, but not a stream of responses.
m
You will need a Source of Truth that delegates to something that provides observable queries (e.g., Room, SqlDelight)
If it is local only, you probably do not need Store
a
Thanks, then we'll switch to the lib as soon as we officially implement full offline support in the app. I am looking forward to it! :)