1.0.3 • Published 6 years ago

why-did-you-update-redux v1.0.3

Weekly downloads
279
License
MIT
Repository
github
Last release
6 years ago

Why did you update

npm version

Why did you update is a function that monkey patches Redux and notifies you in the console when potentially unnecessary re-renders occur due to a unnecessary update from mapStateToProps.

npm.io

Setup

This library is available on npm, install it with: npm install --save why-did-you-update-redux or yarn add why-did-you-update-redux.

Usage

import 'why-did-you-update-redux';

What's all, and it will remove itself from a production bundle.

How it works

This is basically import 'beautiful-react-redux/check', see beautiful-react-redux for more information.

why-did-you-update-redux is based on memoize-state library - How I wrote the world’s fastest React memoization library

Example?

https://codesandbox.io/s/o4mrzr865

License

MIT