Reputation: 1
Can any one tell me how to log each and every request in react js and redux on client side for logging my errors in a file and also logging component life cycle structure ?
Upvotes: 0
Views: 2575
Reputation: 880
You can apply the redux-logger as a middleware when creating the store. You can wrap the dispatch to log the actions. Have a look at this tutorial:
https://egghead.io/lessons/javascript-redux-wrapping-dispatch-to-log-actions
Upvotes: 1