2017-07-10 11:56:28 +00:00
|
|
|
import { createStore } from 'redux';
|
2017-07-12 12:52:15 +00:00
|
|
|
import rootReducer from './reducers';
|
2017-07-10 11:56:28 +00:00
|
|
|
|
|
|
|
|
const defaultState = {
|
2017-07-20 13:43:40 +00:00
|
|
|
searchState: { searchValue: '5', searchType: 'guid' },
|
2017-07-13 13:36:47 +00:00
|
|
|
xmlData: []
|
2017-07-10 11:56:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const devToolsKey = '__REDUX_DEVTOOLS_EXTENSION__';
|
|
|
|
|
const enhancer = window[devToolsKey] ? window[devToolsKey]()(createStore) : createStore;
|
|
|
|
|
export const walleStore: any = enhancer(rootReducer, defaultState);
|