This is an excellent post on how localStorage works and use it to store data beyond simple strings with JSON.parse and JSON.stringify β€οΈ
With this pattern you can actually use localStorage like an in-browser NoSQL Database
I've exploited this pattern to develop a small Vuejs App allowing a user to store meals and plan which meals to cook the next week
Anyways, I meant to write a post about localStorage, but I think if I write about that app, I will just link back to this post to cover localStorage π
Thank you! I still donβt know much besides the basic functionalities but I would love to know more! Iβll keep an eye if you get to post more about localStorage!
Nice, so thank you for pointing out IndexedDB, since I wasn't familiar with it. One more advantage I have found is, that it can be used with Service Workers (or Web Workers in general) π
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is an excellent post on how localStorage works and use it to store data beyond simple strings with
JSON.parse
andJSON.stringify
β€οΈWith this pattern you can actually use localStorage like an in-browser NoSQL Database
I've exploited this pattern to develop a small Vuejs App allowing a user to store meals and plan which meals to cook the next week
Anyways, I meant to write a post about localStorage, but I think if I write about that app, I will just link back to this post to cover localStorage π
Thank you! I still donβt know much besides the basic functionalities but I would love to know more! Iβll keep an eye if you get to post more about localStorage!
Don't use LocalStorage anymore in apps, use IndexedDB
Okay, thanks for the tip.
What are the advantages of indexedDB over localStorage?
It is not blocking javascript I recommend watching youtu.be/NNuTV-gjlZQ
Nice, so thank you for pointing out IndexedDB, since I wasn't familiar with it. One more advantage I have found is, that it can be used with Service Workers (or Web Workers in general) π