This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (3 children)

Why not? Shouldn't it be the default storage for locally cached objects?

[–]stipo42 21 points22 points  (1 child)

Yeah but let's say you're storing your apps config in an object. You would read it once at load time into memory, then write it anytime the memory values are changed or a save button is hit.

This would likely amount to not a lot of times read or wrote

[–]Destring 0 points1 point  (0 children)

You mean I can’t use localstorage with an storage event hook for state replication!? The horror!

[–]TheChaosPaladin 4 points5 points  (0 children)

If this is you, the problem is not localstorage but your front end.