# react-deep-force-update

> Force-updates React component tree recursively

Latest version **2.1.3** (published 2018-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-deep-force-update
pnpm add react-deep-force-update
yarn add react-deep-force-update
bun add react-deep-force-update
```

## 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 | 2.1.3 |
| Published | 2018-08-28 |
| First published | 2015-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 120 |
| Author | Dan Abramov |
| Maintainers | gaearon, neoziro, wkwiatek |
| Keywords | react |

## Links

- npm: https://www.npmjs.com/package/react-deep-force-update
- Repository: https://github.com/gaearon/react-deep-force-update
- Issues: https://github.com/gaearon/react-deep-force-update/issues
- npm.io page: https://npm.io/package/react-deep-force-update

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.1.3 (latest) — 2018-08-28
- 1.1.2 (1x) — 2018-08-24
- 4.0.0-beta.13 (next) — 2018-01-09
- 2.1.2 — 2018-08-24
- 4.0.0-beta.12 — 2018-01-02
- 4.0.0-beta.11 — 2017-12-30
- 4.0.0-beta.10 — 2017-12-30
- 4.0.0-beta.9 — 2017-12-30
- 4.0.0-beta.8 — 2017-12-29
- 4.0.0-beta.7 — 2017-12-29
- 4.0.0-beta.6 — 2017-12-27
- 4.0.0-beta.5 — 2017-12-27
- 4.0.0-beta.4 — 2017-12-26
- 4.0.0-beta.3 — 2017-12-25
- 4.0.0-beta.2 — 2017-12-25
- … 9 more at https://npm.io/package/react-deep-force-update/versions

## README

react-deep-force-update
=========================

[![build status](https://img.shields.io/travis/gaearon/react-deep-force-update/master.svg?style=flat-square)](https://travis-ci.org/gaearon/react-deep-force-update) 
[![npm version](https://img.shields.io/npm/v/react-deep-force-update.svg?style=flat-square)](https://www.npmjs.com/package/react-deep-force-update) 
[![npm downloads](https://img.shields.io/npm/dm/react-deep-force-update.svg?style=flat-square)](https://www.npmjs.com/package/react-deep-force-update)

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

```js
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](https://github.com/facebook/react-native/issues/2985) lands.  
For now, you can keep using 1.x.

## Credits

This project is based on the [code written by @syranide](https://github.com/gaearon/react-hot-api/commit/b3d6059a17407ef44765814ce06b36716d110041).

## License

MIT

---
_Source: https://npm.io/package/react-deep-force-update · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
