May 6, 2024
Personally, I always think of and use local storage as a cache. And I'm that vein, just like a fetch request, I have to parse and encode JSON anyway and abstract how I interface with it.
It really depends on your needs and usage patterns. I remember implementing basic SCORM, which was a synchronous API and blocking and sucked. The use of local storage should not have nearly that many calls.
It really depends.