question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-addons-shallow-compare is unsupported now

See original GitHub issue

According to the latest release of React v15.5.0, they said that React Addons is discontinued support, including react-addons-shallow-compare. It seems that react-addons-shallow-compare is a significant dependency of react-dates, is there any plan to replace it with React.PureComponent? (as mentioned in the above link).

They also said that “it continue to work” in React v15.5.0 but I still want to know if there is any issue with react-dates 😃

Thanks,

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
ljharbcommented, Apr 11, 2017

The only issue would be if React emits a deprecation warning; which it won’t in this case since it’s a separate package.

At such time as we drop support for React < 15.3, we’d certainly be able to use PureComponent; but until then, we’ll just stick with the same version of the shallow compare package. There shouldn’t be any issue.

0reactions
ljharbcommented, Jun 16, 2019

Update for those following this thread; I’ve replaced the dependency on react-addons-shallow-compare with enzyme-shallow-equal, to avoid the fbjs dependency, in bf7e334.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-addons-shallow-compare is unsupported now · Issue #438
5.0, they said that React Addons is discontinued support, including react-addons-shallow-compare . It seems that react-addons-shallow-compare is ...
Read more >
Cannot import react-addons-shallow-compare, Typescript
I have installed react-addons-shallow-compare version 15.3.0 and I found it in the node_modules. It looks like this:
Read more >
react-addons-shallow-compare | Yarn - Package Manager
shallowCompare returns true if the shallow comparison for props or state fails and therefore the component should update. shallowCompare returns false if the ......
Read more >
react-addons-shallow-compare - npm
Start using react-addons-shallow-compare in your project by running `npm i react-addons-shallow-compare`. There are 737 other projects in ...
Read more >
React v0.14 Release Candidate - React Blog - React 中文文档
We're happy to announce our first release candidate for React 0.14! We gave you a sneak peek in July at the upcoming changes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found