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