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! |
Replies: 1 comment
|
Hey there - If the writes are always dependent on reads, you can provide a |
Hey there - If the writes are always dependent on reads, you can provide a
SourceofTruthtoStoreBuilder. 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-opUpdaterwithout aBookkeeper. Completely open to supporting this. Would be happy to review a PR if you want to take a stab at #536