Socket
Socket
Sign inDemoInstall

react-deep-force-update

Package Overview
Dependencies
0
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-deep-force-update

Force-updates React component tree recursively


Version published
Weekly downloads
193K
increased by2.97%
Maintainers
3
Install size
7.85 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 28 Aug 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc