A localStorage-based persistent engine for redux-storage, a middleware to persist a Redux store to storage backends. The engine stores the entire state tree as a JSON string under a single key in window.localStorage. Version 1.1.4 is the latest stable release, originally authored by Michael Contento and now maintained by Gunjan Soni. The package is simple but has async issues: localStorage operations block the JS thread. For full async support with IndexedDB or other backends, consider redux-storage-engine-localforage or redux-persist. Since the original project is deprecated, this fork is in maintenance mode but receives updates.
npm install redux-storage-engine-localstorageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a localStorage engine, integrate it with redux-storage middleware and reducer, and load persisted state on startup.
For larger state trees, consider using an async storage backend like redux-storage-engine-localforage or switch to redux-persist.
Check for updates on GitHub; consider migrating to redux-persist for active development.
Include a Promise polyfill (e.g., es6-promise) or use the 'fake-promise' variant.
If you need per-reducer persistence, consider redux-persist or custom middleware.
Use default import: import createEngine from 'redux-storage-engine-localstorage'
Polyfill Promise with a library like es6-promise.
Ensure createEngine is called with a string key: const engine = createEngine('my-key');No dependency data recorded yet.