4.0.1 • Published 5 years ago

redux-storage-engine-electron-store v4.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

redux-storage-engine-electron-store

electron-store based engine for redux-storage.

Installation

npm install --save redux-storage-engine-electron-store

Usage

Simply invoke the function exported from this module to persist the Redux state store in the default store created by redux-storage.

import createEngine from 'redux-storage-engine-electron-store';
const engine = createEngine();

The function accepts an optional options argument with the following keys:

  • store: a custom redux-storage store to use instead of the default one, or an object that is passed directly to the constructor of Store in redux-storage in order to construct a new store.

  • key: an optional key under which the state will be stored in the store object. When undefined, the entire store will be used to store the Redux state.

For instance, to persist the Redux store into a file named state.json under the key named reduxStore:

import createEngine from 'redux-storage-engine-electron-store';
const engine = createEngine({
  key: 'reduxStore',
  store: {
    name: 'reduxStore'
  }
});
4.0.1

5 years ago

4.0.0

5 years ago

3.0.0

5 years ago

2.0.1

5 years ago

2.0.0

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago