1.0.4 • Published 4 years ago

redux-persist-indexeddb-storage v1.0.4

Weekly downloads
36
License
MIT
Repository
github
Last release
4 years ago

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.

  • Android Browser 2.1
  • Blackberry 7
  • Chrome 23
  • Chrome for Android 32
  • Firefox 18
  • Firefox for Android 25
  • Firefox OS 1.0
  • IE 10 (IE 8+ with localStorage)
  • IE Mobile 10
  • Opera 15 (Opera 10.5+ with localStorage)
  • Opera Mobile 11
  • Phonegap/Apache Cordova 1.2.0
  • Safari 3.1 (includes Mobile Safari)

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'),
}

...
1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago