# why-did-you-update-redux

> Patch Redux to discover unnecessary re-renders

Latest version **1.0.3** (published 2018-08-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install why-did-you-update-redux
pnpm add why-did-you-update-redux
yarn add why-did-you-update-redux
bun add why-did-you-update-redux
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-08-18 |
| First published | 2018-07-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 42 |
| Author | Anton Korzunov |
| Maintainers | kashey |
| Keywords | redux, optimization, reselect, memoization |

## Links

- npm: https://www.npmjs.com/package/why-did-you-update-redux
- Repository: https://github.com/theKashey/why-did-you-update-redux
- Homepage: https://github.com/theKashey/why-did-you-update-redux#readme
- Issues: https://github.com/theKashey/why-did-you-update-redux/issues
- npm.io page: https://npm.io/package/why-did-you-update-redux

## Dependencies (1)

- [beautiful-react-redux](https://npm.io/package/beautiful-react-redux.md) ^2.1.0

## Recent versions

- 1.0.3 (latest) — 2018-08-18
- 1.0.2 — 2018-07-22
- 1.0.1 — 2018-07-22
- 1.0.0 — 2018-07-21

## README

# Why did you update

[![npm version](https://badge.fury.io/js/why-did-you-update-redux.svg)](https://badge.fury.io/js/why-did-you-update-redux)

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.

![](https://i.imgur.com/73vmgG1r.png)

### 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
```js
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](https://github.com/theKashey/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](https://itnext.io/how-i-wrote-the-worlds-fastest-react-memoization-library-535f89fc4a17)

### Example?
[https://codesandbox.io/s/o4mrzr865](https://codesandbox.io/s/o4mrzr865)

### License

MIT

---
_Source: https://npm.io/package/why-did-you-update-redux · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
