A sessionStorage-based engine for redux-storage (v1.0.2, last updated 2016). This package provides a simple way to persist Redux state to window.sessionStorage using the redux-storage middleware/toolkit. It is synchronous, blocking the JS thread on save/load. The package is unmaintained and has no TypeScript types. Compared to localStorage, sessionStorage is scoped to the tab/window and cleared when the tab is closed. Requires redux-storage core package and a Promise polyfill for IE <= 11. The npm status indicates it is deprecated in favor of redux-storage-decorator-filter or similar packages.
npm install redux-storage-engine-sessionstorageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to create a sessionStorage engine, integrate with redux-storage middleware, and load state on store creation.
Consider using modern alternatives like redux-persist which has built-in sessionStorage support and better API.
Be aware that this can cause performance issues, especially with large state. Use localStorage or async engines when possible.
If you need cross-tab persistence, use redux-storage-engine-localstorage instead.
Import a Promise polyfill like es6-promise before using the engine.
Migrate to redux-persist, which has active maintenance and broader ecosystem support.
Ensure redux-storage is installed and imported: import reduxStorage from 'redux-storage'.
Install and import a Promise polyfill: import 'es6-promise/auto' at the entry point.
Wrap the engine creation in a isBrowser check, or use a redux-storage decorator that falls back to a no-op engine on the server.