# @rogntudju/checker

> A specialized HOC that detects useless re-renders in dev mode.

Latest version **0.0.11** (published 2020-04-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rogntudju/checker
pnpm add @rogntudju/checker
yarn add @rogntudju/checker
bun add @rogntudju/checker
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2020-04-20 |
| First published | 2020-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | florent.legall |

## Links

- npm: https://www.npmjs.com/package/@rogntudju/checker
- Repository: https://github.com/flegall/rogntudju
- Issues: https://github.com/flegall/rogntudju/issues
- npm.io page: https://npm.io/package/@rogntudju/checker

## Dependencies (1)

- [lodash.isequal](https://npm.io/package/lodash.isequal.md) ^4.5.0

## Recent versions

- 0.0.11 (latest) — 2020-04-20
- 0.0.10 — 2020-04-20
- 0.0.9 — 2020-04-20
- 0.0.8 — 2020-04-20
- 0.0.7 — 2020-04-20
- 0.0.6 — 2020-04-20

## README

# `@rogntudju/checker`

A specialized HOC that detects useless re-renders in dev mode.

## Usage

```javascript
import { checker } from "@rogntudju/checker";
import { Component } from "yourComponent.jsx";

// Builds your specialized component that checks for useless re-renders
const Wrapper = checker(connect);
```

## Enabling or disabling checks

By default, checks are enabled only in dev mode (`process.env.NODE_ENV !== "production"`).

If you wish to override this, there an optional parameter to the `checker()` function.

```typescript
const checkEnabled: boolean = isUselessRenderingCheckEnabled();
const Wrapper = checker(connect, checkEnabled);
```

---
_Source: https://npm.io/package/@rogntudju/checker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
