localStorage that avoids storage limit failures
Why?
Because localStorage is great, but extremely limited in functionality and robustness. This library adds:
- automatic garbage collection and limit detection (no failures on persistence)
Installation
yarn add -D @kwhitley/localstorify
Usage
Simply replace references to localStorage
with the the export of this library.
// replace localStorage // with localstorify ... // or localStorage // with localstorify