why-did-you-update-redux

Patch Redux to discover unnecessary re-renders

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
why-did-you-update-redux
4101.0.34 years ago4 years agoMinified + gzip package size for why-did-you-update-redux in KB

Readme

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.

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