gpxstudio.github.io icon indicating copy to clipboard operation
gpxstudio.github.io copied to clipboard

LocalStorage issues

Open radulle opened this issue 1 year ago • 1 comments

Currently tracks are stored in LocalStorage, read on load and deleted after only to be stored again when browser closes. This can cause following issues:

  1. If you open second tab will not have tracks open, there might be a chance for tracks to be lost.
  2. Because tracks are stored in LocalStorage there is possibility for them to be lost on browser crash.
  3. LocalStorage has limit of 5MB (might be issue if someone has large number of tracks)

How do you feel about implementing IndexedDB and not deleting tracks on load. If that's ok I'd be willing to contribute.

radulle avatar Apr 08 '23 19:04 radulle

Thank you very much for your suggestion, I actually did not know much about IndexedDB before your issue. I have re-implemented the website from scratch and it now uses IndexedDB instead of localStorage. You can check it out here: https://gpx.studio/gpx.studio/ and provide feedback on this new repository: https://github.com/gpxstudio/gpx.studio.

vcoppe avatar Jun 28 '24 20:06 vcoppe