DEV Community

Discussion on: Getting More Out Of (And Into) Storage With JavaScript

Collapse
 
isaachagoel profile image
Isaac Hagoel

Cool. I encountered some additional issues when using local storage on a (relatively) large scale applications. The issues (and a possible solution) are described in this article. You might want to add to your library.
michalzalecki.com/why-using-localS...

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

Just as a follow-up, I combined his excellent isSupported() methodology with my approach, and I think it should be much more fault-tolerant now:

github.com/bytebodger/local-storage

Thanks for the heads-up!

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

Good info! I honestly hadn't even tried it under Private Browsing. If I use his isSupported() methodology, combined with my JSON stringify/parse approach, it could be more useful and fault tolerant. Thanks!