Package Exports
- redux-duplicate-actions
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (redux-duplicate-actions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Redux Duplicate Action Monitor
This is a redux middleware that detects duplicate actions & shows this in the console. Ideal for ensuring good redux practices. Development use only!
Supports Node 4.x +
Usage
// Only includes in DEV mode
if (__DEV__) {
// To throw a fatal error use the below:
const reduxDuplicateActions = require('redux-duplicate-actions')(true)
reduxMiddleware.push(reduxDuplicateActions)
// To just show a warning:
const reduxDuplicateActions = require('redux-duplicate-actions')(false)
reduxMiddleware.push(reduxDuplicateActions)
}
Test
Run the following commands to test the module:
npm install && npm test
Contributing
All contributions are very welcome, please read my CONTRIBUTING.md first. You can submit any ideas as pull requests or as GitHub issues. If you'd like to improve code, please feel free!