blob: b9469b963d2b1ad8e8ccb941e7f76728c63aaf29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// @flow
import { createStore } from 'redux';
import { persistReducer } from 'redux-persist';
import createElectronStorage from 'redux-persist-electron-storage';
import middleware from './middleware';
import reducers from './reducers';
const persistConfig = {
key: 'root',
storage: createElectronStorage(),
whitelist: [
'onboarding',
'recentList',
'settings'
]
};
const persistedReducer = persistReducer(persistConfig, reducers);
export default createStore(persistedReducer, middleware);
|