mirror of
https://github.com/yattee/yattee.git
synced 2026-07-19 22:02:10 +00:00
Previously CKSyncEngine was created with nil state serialization on every launch, replaying the entire zone change history (hundreds of merge/delete log lines and re-downloads each start). Now the saved state is loaded so launches only fetch changes since the last session. To make incremental sync safe: - Clear persisted state once when the record schema version increases, so records previously skipped as unsupported get re-delivered after an app update. - Handle remote zone deletion in fetchedDatabaseChanges by recreating the zone and re-uploading local data, instead of leaving sync dead. Account change and manual Refresh Sync still clear the state and force a full fetch as before.