New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

redux-persist-indexeddb-storage

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redux-persist-indexeddb-storage

Redux Persist storage engine using Indexeddb

1.0.4
latest
Version published
Maintainers
1
Created

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

...

FAQs

Package last updated on 11 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts