Discussion

Logger for Redux

Middleware of Redux

Redux middleware solves different problems than an Express or Koa middleware, but in a conceptually similar way.
It provides a third party extension point between dispatching an action, and the moment it reaches the reducers.
We can use Redux middleware for logging, crash reporting, talking to an asynchronous API, routing, and more.
Here, the one good method for redux logging is addressed.

Install

npm i –save redux-logger

Usage

After install this package, we should seek it into middleware.

Result

At the inspect widow, we can see the logging result easily.
So we can detect the bugs correctly on Redux handling and fix them easily.



You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *