Skip to content

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

@KATT

Description

@KATT

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions