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

Offline delete not synching with remote upon reconnection #549

Closed
igor-kualia opened this issue Feb 23, 2025 · 1 comment
Closed

Offline delete not synching with remote upon reconnection #549

igor-kualia opened this issue Feb 23, 2025 · 1 comment

Comments

@igor-kualia
Copy link

igor-kualia commented Feb 23, 2025

Steps to reproduce:

  1. Turn on internet
  2. Upsert row
  3. Turn off internet
  4. Delete row
  5. Close app (not backgrounded)
  6. Turn on internet
  7. Open app and wait however long, or perform other actions
  8. Check Supabase and notice the locally-deleted row is still on remote.

Note:
This is not a problem if you replace step 5 above with moving the app to the background. Re-opening the app will synch the delete correctly.
It also is not a problem if you replace step 4 above with Update row. Nevermind. Does this for upserts as well.

It seems the offline queue is losing the requests in at least the scenario where the app is force closed before connection is restored. There may be other scenarios, but this one I have confirmed.

Any ideas?

@igor-kualia
Copy link
Author

Need to reopen

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

No branches or pull requests

1 participant