-
Notifications
You must be signed in to change notification settings - Fork 8
Description
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
- Load page
- Set to offline
- Add todo item
- Remove todo item
- Go online
- 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