Options for local CRUD only? #556
-
Hi! My app doesn't have write access to the network backend. It just makes requests to source data, before writing it to a local database. While I can make requests well enough, I can't find out how to write to the database without turning the Store into a Mutable one, which requires an Updater. Is this possible at all? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey there - If the writes are always dependent on reads, you can provide a |
Beta Was this translation helpful? Give feedback.
Hey there - If the writes are always dependent on reads, you can provide a
SourceofTruth
toStoreBuilder
. If writes can be independent of reads, then you need aMutableStore
. Although we aren't making local writes only possible throughMutableStoreBuilder
, you can achieve it by providing a no-opUpdater
without aBookkeeper
. Completely open to supporting this. Would be happy to review a PR if you want to take a stab at #536