react-deep-force-update
Force-updates React component tree recursively
Last updated 2 years ago by gaearon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-deep-force-update 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.1.2                                ...           1x (2 years ago)
  • 2.1.3                                ...           latest (2 years ago)
  • 4.0.0-beta.13                                ...           next (3 years ago)

24 Versions

  • 2.1.3                                ...           2 years ago
  • 2.1.2 [deprecated]           ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 4.0.0-beta.13                                ...           3 years ago
  • 4.0.0-beta.12                                ...           3 years ago
  • 4.0.0-beta.11                                ...           3 years ago
  • 4.0.0-beta.10                                ...           3 years ago
  • 4.0.0-beta.9                                ...           3 years ago
  • 4.0.0-beta.8                                ...           3 years ago
  • 4.0.0-beta.7                                ...           3 years ago
  • 4.0.0-beta.6                                ...           3 years ago
  • 4.0.0-beta.5                                ...           3 years ago
  • 4.0.0-beta.4                                ...           3 years ago
  • 4.0.0-beta.3                                ...           3 years ago
  • 4.0.0-beta.2                                ...           3 years ago
  • 4.0.0-beta.1                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.1                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |