why-did-you-update-redux
v1.0.3
Published
Patch Redux to discover unnecessary re-renders
Downloads
695
Maintainers
Readme
Why did you update
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.
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