Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync pull #1745

Open
rohankm opened this issue Jan 30, 2024 · 1 comment
Open

Sync pull #1745

rohankm opened this issue Jan 30, 2024 · 1 comment

Comments

@rohankm
Copy link

rohankm commented Jan 30, 2024

Hi im getting issues in the sync pull..
If the current document updated_at in watermelon db is greater than the server pulled one.. then it should reject the changes for that current document.
But here it's accepting the old document which is sent by the server.
How do I solve this?

@primus11
Copy link

primus11 commented Feb 1, 2024

by default local conflict resolution will be performed where local columns will overwrite remote ones
export function resolveConflict

If it would be preferred to completely ignore remote changes in this case I believe you can implement conflictResolver which is applied just after resolveConflict (calling code)

Check related PR for code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants