Skip to content

Commit

Permalink
Merge pull request #94 from conveyal/dev
Browse files Browse the repository at this point in the history
Patch Release to fix Redux DevTools
  • Loading branch information
landonreed authored Nov 6, 2019
2 parents 3eabd69 + c328523 commit a6fcd6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/store/store.development.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {browserHistory} from 'react-router'
import {routerMiddleware} from 'react-router-redux'
import {applyMiddleware, createStore} from 'redux'
import {applyMiddleware, compose, createStore} from 'redux'
import {createLogger} from 'redux-logger'
import thunkMiddleware from 'redux-thunk'

Expand All @@ -27,12 +27,12 @@ if (process.env.LOGROCKET) {
const LogRocket = require('logrocket')
middlewares.push(LogRocket.reduxMiddleware())
}

// Use Redux Dev Tools to compose enhancers if available.
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
export default function configureStore (rootReducer, initialState) {
return createStore(
rootReducer,
initialState,
applyMiddleware(...middlewares),
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
composeEnhancers(applyMiddleware(...middlewares))
)
}

0 comments on commit a6fcd6a

Please sign in to comment.