initial perf, which gets stripped out in production (#4131)

This commit is contained in:
Josh Ponelat
2018-05-30 22:44:19 +02:00
committed by kyle
parent d91e4e84b8
commit 5ea2150ae7
9 changed files with 61 additions and 8 deletions

View File

@@ -15,9 +15,15 @@ const idFn = a => a
function createStoreWithMiddleware(rootReducer, initialState, getSystem) {
let middlwares = [
// createLogger( {
// stateTransformer: state => state && state.toJS()
// } ),
/* develblock:start */
// Measure actions
() => next => action => {
require("root/src/perf").start("action:"+action.type)
const res = next(action)
require("root/src/perf").stop("action:"+action.type)
return res
},
/* develblock:end */
systemThunkMiddleware( getSystem )
]