about summary refs log tree commit diff
path: root/app/assets/javascripts/components/store
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-01-09 12:37:15 +0100
committerEugen Rochko <eugen@zeonfederated.com>2017-01-09 12:37:53 +0100
commit23ebf60b95984764992c4b356048786ed0ab2953 (patch)
treebfb92ac8a271c73986b89ea8e0b00435634f2a48 /app/assets/javascripts/components/store
parent2e71bb031b2dff90a2b0f9854bdcd804c069268a (diff)
Improve initialState loading
Diffstat (limited to 'app/assets/javascripts/components/store')
-rw-r--r--app/assets/javascripts/components/store/configureStore.jsx13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/assets/javascripts/components/store/configureStore.jsx b/app/assets/javascripts/components/store/configureStore.jsx
index 3d03d4c19..2c1476e5d 100644
--- a/app/assets/javascripts/components/store/configureStore.jsx
+++ b/app/assets/javascripts/components/store/configureStore.jsx
@@ -1,11 +1,12 @@
 import { createStore, applyMiddleware, compose } from 'redux';
-import thunk                                     from 'redux-thunk';
-import appReducer                                from '../reducers';
-import { loadingBarMiddleware }                  from 'react-redux-loading-bar';
-import errorsMiddleware                          from '../middleware/errors';
+import thunk from 'redux-thunk';
+import appReducer from '../reducers';
+import { loadingBarMiddleware } from 'react-redux-loading-bar';
+import errorsMiddleware from '../middleware/errors';
+import Immutable from 'immutable';
 
-export default function configureStore(initialState) {
-  return createStore(appReducer, initialState, compose(applyMiddleware(thunk, loadingBarMiddleware({
+export default function configureStore() {
+  return createStore(appReducer, compose(applyMiddleware(thunk, loadingBarMiddleware({
     promiseTypeSuffixes: ['REQUEST', 'SUCCESS', 'FAIL'],
   }), errorsMiddleware()), window.devToolsExtension ? window.devToolsExtension() : f => f));
 };