A storage engine for redux-persist that leverages IndexedDB via localForage, providing asynchronous, persistent state storage for React applications. Version 1.0.4 is the latest and appears stable with no frequent releases. Key differentiators: automatic fallback to localStorage for browsers without IndexedDB support, and a simple API that integrates directly into redux-persist config. This package is a thin wrapper around localForage, which has broad browser support. Note: limited to React/browser environments and depends on redux-persist v4/v5.
npm install redux-persist-indexeddb-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures redux-persist to use IndexedDB storage via redux-persist-indexeddb-storage. Sets up a persist reducer, store, and persistor.
Use with redux-persist v4 or v5, or check if the package has been updated for v6.
Use the PersistGate component from redux-persist to delay rendering until rehydration is complete.
Use only alphanumeric characters and underscores, keep name under 64 characters.
Fix: storage: storage('myDB') instead of storage: storageEnsure the database name is a non-empty string using [a-zA-Z0-9_].
Ensure cleanup of async operations on unmount (e.g., using useEffect cleanup).