Should local cache be saved first then save server change token?
Closed this issue · 1 comments
clementinelove commented
sample-cloudkit-privatedb-sync/PrivateSync/ViewModel.swift
Lines 81 to 85 in d0e8f9c
Hi there, I noticed this sample app saves the server change token before local cache were being saved.
Doesn't this mean if the app exits before local cache saved to the UserDefaults, the app will only fetch changes from the newest token the next time it starts and ignoring all previous changes?
sjrmanning commented
Good call — this has been fixed in fbd7254. Thanks!