npm install redux-debugdebug() as redux middleware. Similar to redux-logger, but works both on the server and in the client.
!img
```
npm install redux-debug
`js
var Debug = require('redux-debug')
var debug = require('debug')('redux')
var Store = Redux.compose(
Redux.applyMiddleware(Debug(debug))
)(Redux.createStore)
`
This fn is usually a debug instance but can be any sprintf-compatible function.
`js`
Redux.applyMiddleware(Debug(console.log))
Available options include:
- collapsed (default: false): Collapse the state transitions
- My logs aren't showing up!
If you're using debug, you'll need to pass the DEBUG=... environment variable. If you'relocalStorage.DEBUG='...'`.
in the browser, you'll need to set
MIT