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

Add back perflogger

This commit is contained in:
JUDIT GRESKOVITS 2017-04-06 11:58:21 +01:00
parent 18712c01fc
commit 8118aaa94d

View File

@ -3,10 +3,10 @@ import { enableBatching } from 'redux-batched-actions';
import promiseMiddleware from 'redux-promise-middleware';
import { createStore, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
// import perflogger from 'redux-perf-middleware';
import perflogger from 'redux-perf-middleware';
import createReducer from '@state/reducers';
// import { isProduction } from '@utils';
import { isProduction } from '@utils';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
@ -18,8 +18,8 @@ export default (state = Object.freeze({})) => {
applyMiddleware(
createLogger(),
promiseMiddleware(),
thunk/*,
!isProduction() && perflogger*/
thunk,
!isProduction() && perflogger
)
)
);