1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +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
} = redux;
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
module.exports = (state = Object.freeze({})) => {
return createStore(
enableBatching(createReducer()),
state,
compose(
composeEnhancers(
applyMiddleware(
createLogger(),
promiseMiddleware(),