Add back perflogger
This commit is contained in:
parent
18712c01fc
commit
8118aaa94d
@ -3,10 +3,10 @@ import { enableBatching } from 'redux-batched-actions';
|
|||||||
import promiseMiddleware from 'redux-promise-middleware';
|
import promiseMiddleware from 'redux-promise-middleware';
|
||||||
import { createStore, compose, applyMiddleware } from 'redux';
|
import { createStore, compose, applyMiddleware } from 'redux';
|
||||||
import thunk from 'redux-thunk';
|
import thunk from 'redux-thunk';
|
||||||
// import perflogger from 'redux-perf-middleware';
|
import perflogger from 'redux-perf-middleware';
|
||||||
|
|
||||||
import createReducer from '@state/reducers';
|
import createReducer from '@state/reducers';
|
||||||
// import { isProduction } from '@utils';
|
import { isProduction } from '@utils';
|
||||||
|
|
||||||
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
|
||||||
|
|
||||||
@ -18,8 +18,8 @@ export default (state = Object.freeze({})) => {
|
|||||||
applyMiddleware(
|
applyMiddleware(
|
||||||
createLogger(),
|
createLogger(),
|
||||||
promiseMiddleware(),
|
promiseMiddleware(),
|
||||||
thunk/*,
|
thunk,
|
||||||
!isProduction() && perflogger*/
|
!isProduction() && perflogger
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user