A decorator for redux-storage that allows composing multiple storage engines (e.g., localStorage, sessionStorage, cookies) into a single engine. Current stable version is 1.0.7, last updated in 2015. It works by wrapping an array of engines and delegating load/save operations to each. The library is minimal and has no dependencies, but it requires redux-storage and engine packages to be useful. A key warning: if the same state key is loaded from multiple engines, the final state is non-deterministic and a warning is emitted in non-production environments.
npm install redux-storage-decorator-enginesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to compose multiple storage engines using the decorator, including a custom cookie engine.
Ensure each engine loads unique keys to avoid non-deterministic behavior.
Consider migrating to modern state persistence solutions like redux-persist.
Write a declaration file or use // @ts-ignore.
Use default import: import engines from 'redux-storage-decorator-engines'
Run 'npm install --save redux-storage-decorator-engines' and ensure the module is in dependencies.
Ensure each engine contributes unique keys to avoid non-deterministic loading.
No dependency data recorded yet.