0.0.11 • Published 4 years ago

@rogntudju/checker v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@rogntudju/checker

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

Usage

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.

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

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago