redux-user-timing
User Timing middleware for profiling redux application
Introduction
Measuring performance is crucial for optimizing the application. Using with User Timing API, You can inspect performance about each dispatched redux action. For more details, check out Carl Vitullo's Blog: Performance Profiling a Redux App.
Installation
$ npm i redux-user-timing
Alternatively, using yarn:
$ yarn add redux-user-timing
Then enable redux-user-timing with applyMiddleware()
;;; const store = ;
Please, use this middleware only for development environment.
configureStore.js
;;; const configureStore = { const middlewares = /* Some other middlewares */ ; if processenvNODE_ENV !== 'production' // Recommend to add redux-user-timing as a last middleware. middlewares; const store = ; return store;}; ;
Thanks
This idea is inspired by clarkbw. and thanks for Carl Vitullo about kind blog explanation.
License
MIT © Taehwan Noh