Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React Depreciation Notices #19

Open
2 tasks
hellsan631 opened this issue Sep 11, 2019 · 1 comment
Open
2 tasks

React Depreciation Notices #19

hellsan631 opened this issue Sep 11, 2019 · 1 comment

Comments

@hellsan631
Copy link

hellsan631 commented Sep 11, 2019

I get two different depreciation warnings while using this library.

1

  • One related to react-transition-group

Warning: Legacy context API has been detected within a strict-mode tree:

The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.

Please update the following components: Transition$$1

Learn more about this warning here:

2

  • The other one related to Dropdown

Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Dropdown which is inside StrictMode. Instead, add a ref directly to the element you want to reference.

in div (created by Context.Consumer)
in Manager (created by Dropdown)

To ensure future compatibility with react 17 (most likely the next react release), Any use of findDOMNode should be replaced with useRef or forwardRef, and react-transition-group updated accordingly (when it gets updated) (see reactjs/react-transition-group#429)

@joeljerushan
Copy link

I get this for Modal while i use <Modal />
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants