why-did-you-update-redux

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i why-did-you-update-redux

Weekly Downloads

171

Version

1.0.3

License

MIT

Unpacked Size

3.48 kB

Total Files

4

Last publish

Collaborators

  • kashey