diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-31 16:15:12 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-08-31 16:15:12 +0200 |
commit | 72591cc6d59d774e66d1d42af44bdc00f71f99f8 (patch) | |
tree | e2ab1fba6e9b446b92f065af920483b998a2c2ab /app/assets/javascripts/components/store/configureStore.jsx | |
parent | 92afd296509de82e7550f67064b032db916b1f63 (diff) |
Cleaning up action names and compose drawer
Diffstat (limited to 'app/assets/javascripts/components/store/configureStore.jsx')
-rw-r--r-- | app/assets/javascripts/components/store/configureStore.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/store/configureStore.jsx b/app/assets/javascripts/components/store/configureStore.jsx index 9ff28bb42..1f2fcf2cf 100644 --- a/app/assets/javascripts/components/store/configureStore.jsx +++ b/app/assets/javascripts/components/store/configureStore.jsx @@ -1,7 +1,7 @@ -import { createStore, applyMiddleware } from 'redux'; +import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import appReducer from '../reducers'; -export default function configureStore() { - return createStore(appReducer, applyMiddleware(thunk)); +export default function configureStore(initialState) { + return createStore(appReducer, initialState, compose(applyMiddleware(thunk), window.devToolsExtension ? window.devToolsExtension() : f => f)); } |