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

Go Offline -> Add todo -> Remove todo -> Go Online #6

Open
KATT opened this issue Oct 9, 2017 · 0 comments
Open

Go Offline -> Add todo -> Remove todo -> Go Online #6

KATT opened this issue Oct 9, 2017 · 0 comments

Comments

@KATT
Copy link

KATT commented Oct 9, 2017

Summary

If you create a todo item while offline, whatever mutation you apply to edit does not trigger. This is understandable as it has no ID yet and following mutation won't work.

I know this is just a proof-of-concept, but do you have any ideas how to approach this problem? I'm toying around with doing an offline-first Apllo RN app so basically just started googling offline-support 20min ago. Haven't thought about it much myself, I might have a play around in the next few days.

.. Also, related, if you you crazy tick/untick the checkbox whilst offline, you'll have a myriad of queued requests. Might be two problems to solve at the same time, or it might not. 🤷‍♂️

STR

  1. Load page
  2. Set to offline
  3. Add todo item
  4. Remove todo item
  5. Go online
  6. Hard-refresh page

Expected

Added todo item should be not have been added (or added and instantly removed)

Actual

Said todo item is in place

Notes

Same thing with any mutation. I.e. add item while offline -> update to checked -> go online -> refresh page

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