index.ts 782 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
import { ICourseField, ICourseFields } from './coursefields/coursefields.types';
5
import { IStudentDataField, IStudentDataFields } from './studentdatafields/studentdatafields.types';
6
7
8
9
10
11

export {
  IAppState,
  rootReducer,
  ICourseField,
  ICourseFields,
12
13
  IStudentDataField,
  IStudentDataFields,
14
15
16
17
18
19
20
21
22
23
};

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

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