react-with-direction icon indicating copy to clipboard operation
react-with-direction copied to clipboard

React 17

Open birge opened this issue 5 years ago • 12 comments

React 17 is around the corner and this package still relies on the unsafe componentWillRecieveProps. I attempted to make a pr to mark it as unsafe but this breaks with pre 16 react versions. Can we move forward and remove support for pre 16 react? If not switching to componentDidUpdate in this PR https://github.com/airbnb/react-with-direction/pull/14 seems like the logical way forward.

birge avatar Aug 20 '19 20:08 birge

I'm not sure how accurate "around the corner" is.

As for #14, see https://github.com/airbnb/react-with-direction/pull/14#discussion_r195531197.

ljharb avatar Aug 20 '19 20:08 ljharb

Do we expect to have React 17 support?

balovbohdan avatar May 24 '21 09:05 balovbohdan

I do expect to have it.

ljharb avatar May 24 '21 14:05 ljharb

Landing here due to incorrect peer dependenciy warnings from yarn install for react and react-dom, would be great to get this resolved!

mcmxcdev avatar Jul 09 '21 09:07 mcmxcdev

@mhatvan they're currently correct warnings.

ljharb avatar Jul 13 '21 01:07 ljharb

Is this on the roadmap guys?

npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^0.14 || ^15 || ^16" from [email protected]

react@17 unsupported..

nbstr avatar Sep 04 '21 14:09 nbstr

Please add support for react 17

JustFly1984 avatar Oct 12 '21 20:10 JustFly1984

@mhatvan they're currently correct warnings.

Yeah, the warning is correct 😄 And it should be solved by the airbnb team by updating peerDependency at package.json.

It's a sad thing that so huge a company doesn't care about it.

balovbohdan avatar Jan 04 '22 15:01 balovbohdan

@balovbohdan thats hostile, untrue, and unnecessary. Everybody cares a lot, which is why we won’t update the peer dep until we’re able to test it. It would be reckless to do so otherwise.

ljharb avatar Jan 04 '22 15:01 ljharb

https://github.com/airbnb/react-with-direction/pull/32

balovbohdan avatar Jan 04 '22 15:01 balovbohdan

@balovbohdan thats hostile, untrue, and unnecessary. Everybody cares a lot, which is why we won’t update the peer dep until we’re able to test it. It would be reckless to do so otherwise.

Yep, you're right. But this may be to so complex as expected. React 18 is rather close to getting launched, and folks are still not able to migrate to React 17. It's not correct to go with this warning, as it means dependency is not correct and something may get broken.

balovbohdan avatar Jan 04 '22 15:01 balovbohdan

Correct. Your choices remain to stay on react 16, or stop using this library.

ljharb avatar Jan 04 '22 17:01 ljharb