mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
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 { 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
|
||||
)
|
||||
)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user