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.
SetupThis library is available on npm, install it with:
npm install --save why-did-you-update-reduxor
yarn add why-did-you-update-redux.
What's all, and it will remove itself from a production bundle.
How it worksThis is basically
import 'beautiful-react-redux/check', see beautiful-react-redux for more information.
why-did-you-update-reduxis based on memoize-state library - How I wrote the world’s fastest React memoization library