From 94ae410220b3006290526484c25ae18405cb5f1e Mon Sep 17 00:00:00 2001 From: JUDIT GRESKOVITS Date: Wed, 4 Jan 2017 12:00:14 +0000 Subject: [PATCH] Add Redux devtool extension connection - will need to only be available in dev in the future --- frontend/src/state/store.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/state/store.js b/frontend/src/state/store.js index 70a3c77a..52afdb65 100644 --- a/frontend/src/state/store.js +++ b/frontend/src/state/store.js @@ -12,11 +12,13 @@ const { applyMiddleware } = redux; +const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; + module.exports = (state = Object.freeze({})) => { return createStore( enableBatching(createReducer()), state, - compose( + composeEnhancers( applyMiddleware( createLogger(), promiseMiddleware(),