Skip to content

v2.0.0

Choose a tag to compare

@gaearon gaearon released this 19 Oct 15:27
· 18 commits to master since this release

Breaking Changes

React 0.14 is required now

You can't use this library with 0.13 anymore.

Only ES6 classes that inherit React.Component will be properly updated when walking the tree

To clarify, the library works correctly with stateless components and with createClass() components too.

However, as of React 0.14, ES6 components that don't extend React.Component are deprecated, and we remove support for them in this release.

If you use ES6 classes for components, you must extend React.Component now, and this is the case for third-party libraries too, so if you spot one that doesn't do that, you need to file an issue with them.

If you don't see any React warnings when running your code, you shouldn't worry about this change.

There is no need to inject React now

Before

import React from 'react'; 
import getDeepForceUpdate from 'react-deep-force-update';

const deepForceUpdate = getDeepForceUpdate(React);

After

import deepForceUpdate from 'react-deep-force-update';

React Native support is on hold

This library will support React Native when 0.14-compatible React Native lands.
Track it in react/react-native#2985.