Home

Awesome

Redux persist engine using IndexedDB

npm version npm dependency npm downloads

This storage can be used only in React, this package use localForage, this uses localStorage in browsers with no IndexedDB or WebSQL support

Supported Browsers Platforms

localForage works in all modern browsers (IE 8 and above). Asynchronous storage is available in all browsers in bold, with localStorage fallback in parentheses.

Different browsers have different storage limits, so plan accordingly.

Install

npm install redux-persist-indexeddb-storage

or

yarn add redux-persist-indexeddb-storage

Usage

Simply use 'redux-persist-indexeddb-storage' as the storage option in the redux-persist config.

import storage from 'redux-persist-indexeddb-storage';
...

const persistConfig = {
  key: 'root',
  storage: storage('myDB'),
}

...