nojronatron / Bigfoot-Bib-Report-WL-Form

Customized Winlink Race Tracker Form and Template for use in Bigfoot ultramarathon events.
https://enchanting-pony-09ae40.netlify.app/bigfoot-bib-report-initial
The Unlicense
5 stars 1 forks source link

Enhancement: Leverage LocalStorage #5

Closed nojronatron closed 1 year ago

nojronatron commented 2 years ago

Identify state that could be stored in LocalStorage instead of global variables (where applicable).

The original form makes minimal use of it, but also enforces a workflow that repeatedly reformats, stores, and calls data in various ways. It might be possible to use LocalStorage to simplify the mechanics of:

There is also at least one case where NOT using LocalStorage causes a bug when loading data stored in a file.

nojronatron commented 1 year ago

To clarify, Local Storage is used however it is a little wonky. For instance, it is not always updated when it could (should?) be. PR #36 has addressed some issues with Local Storage. There is probably more that could be done to improve it, but that is TBD.

nojronatron commented 1 year ago

PR #38 addresses this as part of fixing the save file and load file functions.