shards-react icon indicating copy to clipboard operation
shards-react copied to clipboard

React Depreciation Notices

Open hellsan631 opened this issue 5 years ago • 1 comments

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 https://github.com/reactjs/react-transition-group/issues/429)

hellsan631 avatar Sep 11 '19 17:09 hellsan631

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

joeljerushan avatar Feb 03 '21 05:02 joeljerushan