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 feature not working question #1792

Closed
Protonosgit opened this issue May 6, 2024 · 1 comment
Closed

Sync feature not working question #1792

Protonosgit opened this issue May 6, 2024 · 1 comment

Comments

@Protonosgit
Copy link

Protonosgit commented May 6, 2024

Hi, I just tried implementing the sync feature of watermelondb with supabase and ran into an issue I cant really fix:
When requesting a sync using the rpovided example snippet to my database it simply fails with: TypeError: Cannot read property '_resetCount' of undefined.
This seems to happen even before a request is even made to my database directly after invoking synchronize.
I tried resetting the whole app multiple times and adding/removing fields but the error persists.

I might be stupid but there is always some data present in the database before requesting a sync inserted by my own sync system. Might this be the problem? Should the database be completly empty before requesting the first sync?

Update: It doesnt work with an empty database either and synclogger shows the same error

@Protonosgit
Copy link
Author

Seems to have been a weird import issue on my side and is now solved but there definetly should have been a warning from watermelondb in such cases!

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

1 participant