index.ts 638 Bytes
Newer Older
1
// import * as persistState from 'redux-localstorage';
2
import * as createLogger from 'redux-logger';
3
import { IAppState, rootReducer, deimmutify } from './store';
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { ICourseField, ICourseFields } from './coursefields/coursefields.types';

export {
  IAppState,
  rootReducer,
  ICourseField,
  ICourseFields,
};

export const middleware = [
  createLogger({
    level: 'info',
    collapsed: true,
    stateTransformer: deimmutify
  })
];

21
/* export const enhancers = [
22
23
24
  persistState(
    '', {
      key: 'e-epal',
25
      serialize: s => JSON.stringify(deimmutify(s)),
26
27
      deserialize: s => reimmutify(JSON.parse(s)),
  })
28
]; */