redux-duplicate-actions

This is a redux middleware that detects duplicate actions & shows this in the console. You can choose to make them fatal errors or friendly warnings! Development use only!

Usage no npm install needed!

<script type="module">
  import reduxDuplicateActions from 'https://cdn.skypack.dev/redux-duplicate-actions';
</script>

README

npm Build Status Downloads GitHub issues GitHub pull requests FOSSA Status NPM

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 10.x +

Usage

if (__DEV__) {
  const reduxDuplicateActions = require("redux-duplicate-actions")(true);
  reduxMiddleware.push(reduxDuplicateActions);
  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!

License

FOSSA Status