Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Minicart crashes when internet connection is lost #325

Open
thayannevls opened this issue Feb 29, 2020 · 0 comments
Open

Minicart crashes when internet connection is lost #325

thayannevls opened this issue Feb 29, 2020 · 0 comments

Comments

@thayannevls
Copy link

thayannevls commented Feb 29, 2020

Adding products or changing the quantity while offline doesn't work and the minicart keeps loading even when user is back online, forcing user to reload the page and lose their minicart data.

This can be a problem to users with low quality networks too.

How to reproduce

  1. Add an product in the minicart
  2. Go offline
  3. Change the quantity of the product in the minicart
  4. Minicart will be in a inifine loading unless you reload the entire page

Possible solutions

  • simple solution: Throw an error when user tries to add products when offline and fix infinity loading minicart.
  • simple but better solution: Throw an warning that minicart will only be updated when internet connection is estabilshed and if the user closes the site, all minicart data will be lost.
  • robust solution: When internet connection is lost, store minicart data on local storage and retries to send to serve when the user is back online.

I would like to work on this issue if you guys agree it's worth to implement it :)

ezgif com-video-to-gif

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

No branches or pull requests

1 participant