News for hackers. Stuff that matters.
Re:LocalStorage or WebSQL unexpectedly cleared by apatheticonion on Sunday December 15, 2019 @11:45PM (#21800867)
I wrote a PWA which functioned as a calories counter and exercise tracker.

I stored the data on the client using indexedDB, offering an export/import option for manual backups.

I wasn't interested in the data and it's simpler to just store it on the client rather than setting up the infrastructure required to centrally persist this information.

It's really unfortunate that it's not a reliable storage medium.

Re:LocalStorage or WebSQL unexpectedly cleared by gnaritas on Monday December 16, 2019 @02:15AM (#21801314)
> It's really unfortunate that it's not a reliable storage medium.

That's not what it's for, you're just misusing the tool for something it isn't meant to be. It's not a database, it's a cache.