Comment by reitanuki
1 year ago
> The idea of it potentially just up and vanishing with a browser update.
Anyone writing applications in the browser should be very cautious to note that many browsers will jettison some types of their website storage if disk space is low.
This is frustrating at the best of times, but if there's no server-side backup then frustration would be an understatement.
I am not sure if this caveat applies to localStorage but from experience it does to IndexedDB — seemingly even in Electron applications (??).
> from experience it does to IndexedDB — seemingly even in Electron applications (??).
oh fun! I haven't run into that. But if you're using electron or any platform's local webkit wrapper, then it makes a lot more sense to forgo the browser's storage and directly use sqlite + server-side backup if possible.