[WIP] feat: add a method to force sync the syncEngine without deleting the local data - #524
Draft
MojtabaHs wants to merge 1 commit into
Draft
[WIP] feat: add a method to force sync the syncEngine without deleting the local data#524MojtabaHs wants to merge 1 commit into
MojtabaHs wants to merge 1 commit into
Conversation
Contributor
Author
|
Update: The data also becomes unstable, showing different states after each refresh. |
MojtabaHs
marked this pull request as draft
August 16, 2026 18:05
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on the very recent conversation in Slack, I found that tearing down and setting up the sync engine forces it to synchronize changes with CloudKit.
I think the underlying issue is likely related to the sync triggers, but this workaround works for now.
Also, to keep a single source of truth, I reused the existing implementation by adding an argument to the existing function instead of introducing a separate code path.
Please take a look, test, and let me know what you think.