A storage enhancer for redux-localstorage that debounces persist requests to improve performance by delaying consecutive store changes and persisting them periodically. Version 0.1.0 is the latest stable release. It wraps lodash.debounce to provide a simple API: debounce(wait, maxWait). Useful in Redux apps with frequent state updates to avoid excessive writes to localStorage. Minimal footprint, no breaking changes known, but the redux-localstorage ecosystem is in maintenance mode.
npm install redux-localstorage-debounceNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic setup: creating a Redux store with debounced localStorage persistence using redux-localstorage-debounce.
Migrate to redux-persist or other modern persistence solutions.
Import compose from 'redux-localstorage' or use a custom compose function that accepts a single enhancer.
Check for updates; consider forking if issues arise.
Use import { debounce } from 'redux-localstorage-debounce'Ensure debounce(100) is passed to compose, e.g., compose(debounce(100), persistState('key'))(adapter(localStorage))Use import adapter from 'redux-localstorage/lib/adapters/localStorage' or import { adapter } from 'redux-localstorage'