1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00

Add Redux devtool extension connection - will need to only be available in dev in the future

This commit is contained in:
JUDIT GRESKOVITS 2017-01-04 12:00:14 +00:00
parent e138d6f0db
commit 94ae410220

View File

@ -12,11 +12,13 @@ const {
applyMiddleware applyMiddleware
} = redux; } = redux;
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
module.exports = (state = Object.freeze({})) => { module.exports = (state = Object.freeze({})) => {
return createStore( return createStore(
enableBatching(createReducer()), enableBatching(createReducer()),
state, state,
compose( composeEnhancers(
applyMiddleware( applyMiddleware(
createLogger(), createLogger(),
promiseMiddleware(), promiseMiddleware(),