redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

React 0.14

Open ronag opened this issue 11 years ago • 8 comments

Currently redux-devtools is what is stopping me from upgrading to React 0.14.

Warning: React.findDOMNode is deprecated. Please use ReactDOM.findDOMNode from require('react-dom') instead.

in LogMonitor.

ronag avatar Sep 23 '15 08:09 ronag

Is 0.14 released? It does not appear so.

We can't just go ahead and break compatibility with React 0.13 for the sake of a single warning until 0.14 is released as a stable version.

gaearon avatar Sep 23 '15 09:09 gaearon

(To clarify: there are a few PRs fixing 0.14 warnings and I'll merge them when it's out, but not before that.)

gaearon avatar Sep 23 '15 09:09 gaearon

And note that it's not really stopping you. It looks like an error but it's just a soft warning. Ignore it and you'll be fine.

gaearon avatar Sep 23 '15 09:09 gaearon

If you don't like the error because of OCD (like me) or whatever... I've made a temporary fork here:

package.json

"devDependencies": {
  "redux-devtools": "git+ssh://[email protected]:tomatau/redux-devtools.git",

Simply uses ReactDOM for findDOMNode instead of react.

I'll be deleting the fork when fixes merged.

tomatau avatar Sep 28 '15 10:09 tomatau

Thanks @tomatau ! Always nice to get rid of unnecessary warnings.

lraivio avatar Sep 28 '15 10:09 lraivio

~~NP! Word of warning... heroku can't npm install from github... so have published this to npm as redux-devtools-14... which makes me feel very dirty.~~

[edit]:

"devDependencies": {
  "redux-devtools": "tomatau/redux-devtools",

Any chance a fix can be merged for this instead as it's such a tiny fix.

src/react/LogMonitor.js

import React, { PropTypes, findDOMNode, Component } from 'react';

becomes:

import React, { PropTypes, Component } from 'react';
import { findDOMNode } from 'react-dom';

I would make the PR here but tests wouldn't run locally for me and don't have time to debug why.

tomatau avatar Sep 28 '15 14:09 tomatau

Got the tests running locally (bad npm version) and made a tiny PR https://github.com/gaearon/redux-devtools/pull/135

tomatau avatar Sep 28 '15 17:09 tomatau

It's a tiny fix but it breaks 0.13 compatibility.

gaearon avatar Sep 28 '15 18:09 gaearon