Stop being the product.
Become the owner.
or
sign uplog in

When is localStorage actually the right choice? Every time…

When is localStorage actually the right choice?

Every time localStorage comes up, people say “don’t use it, use IndexedDB, it’s bad,” etc. I get the concerns, but in my case I’m just storing things like a theme preference and a couple of UI flags. No sensitive data, nothing critical. localStorage feels like the simplest option here, but it almost feels like I’m doing something wrong by using it.

Is most of the hate just about people misusing it as a database? Or are there real downsides even for small key/value stuff like this? Also, when would you pick sessionStorage instead?

Curious how people handle this in real projects without overengineering it.
#dev #programming #technology
source
earnings
2,000 mlx total
$0  total
engagement
3 views
0 reactions

0 comments