A cookie-based storage engine for redux-storage, version 1.0.0. It stores the entire Redux state in a single cookie via document.cookie. This engine is synchronous and blocking, with severe size limits (e.g., IE total cookie limit of 4096 bytes). It uses js-cookie for cookie handling and requires a Promise polyfill for IE<=11. Compared to other redux-storage engines (e.g., localStorage), cookies have cross-subdomain support but are far more restrictive in storage capacity.
npm install redux-storage-engine-cookiesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Integrates the cookie engine with redux-storage: creates an engine, attaches middleware, and loads initial state from cookie.
Use localStorage if more space is needed, or compress the state.
Avoid frequent saves; consider debouncing.
Install es6-promise polyfill before using the engine.
Use a directory path only, e.g., '/path/to/'.
Add a Promise polyfill like es6-promise before using the engine.
Ensure the state is serialized and encoded properly; js-cookie handles encoding, but custom strings may need escaping.
Reduce state size or use a different storage engine like redux-storage-engine-localstorage.