npm

Need private packages and team management tools?Check out npm Orgs. »

react-deep-force-update

2.1.3 • Public • Published

react-deep-force-update

build status npm version npm downloads

Force-updates React component tree recursively.

Don’t use this in your application code!

You’ll only need this if you’re writing a React development tool and you want to enforce a deep update regardless of what component classes have to say.

Installation

npm install --save react-deep-force-update

Requires React 0.14 and newer.

Usage

import React from 'react';
import { render } from 'react-dom';
import deepForceUpdate from 'react-deep-force-update';
 
const instance = render(<Something />);
 
// Will force-update the whole rendered tree
// even if components in the middle of it
// define a strict shouldComponentUpdate().
deepForceUpdate(instance);

React Native

This will work with React Native when facebook/react-native#2985 lands.
For now, you can keep using 1.x.

Credits

This project is based on the code written by @syranide.

License

MIT

Keywords

install

npm i react-deep-force-update

Downloadsweekly downloads

504,746

version

2.1.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
Report a vulnerability