rest - AFIncrementalStore - best design to prevent some records from being updated -
here use case:
- i using afincrementalstore, in standard way
- when offline, user still able update records
- i set own queue upload edited records , process queue when online
- when online refetch data
- i want make sure updated records don't re-updated old data server when online
- whenever edit record, flag in core data 'edited', , clear flag when sent server
the goal is:
- when results server, if results exist in core data, flagged 'updated' or 'deleted', don't want them refreshed values server
i looking best design achieve that, out of box if possible. avoid subclassing.
Comments
Post a Comment