TabPane, Dropdown(,Item,Menu,Toggle), Manager, PopperTargetHelper, CarousellItem (see https://github.com/reactstrap/reactstrap/search?q=contextTypes&unscoped_q=contextTypes)6.5.0es16.7.04.2.1When using <React.StrictMode> Reacts advises against using the legacy context API:
Warning: Legacy context API has been detected within a strict-mode tree:
in StrictMode (at App.tsx:27)
in App (at src/index.tsx:7)
Please update the following components: Dropdown, DropdownItem, DropdownMenu, DropdownToggle, Manager
Learn more about this warning here:
https://fb.me/react-strict-mode-warnings
_From https://reactjs.org/docs/context.html#legacy-api:_
React previously shipped with an experimental context API. The old API will be supported in all 16.x releases, but applications using it should migrate to the new version. The legacy API will be removed in a future major React version. [...]
Reactstrap should be using the new Context API.
Wrap an example app using some of the components mentions at the beginning in React.StrictMode and start it in development mode.
https://stackblitz.com/edit/reactstrap-saxswj?file=Example.js
The Modal component uses deprecated lifecycle hooks:
componentWillReceiveProps: Please update the following components to use static getDerivedStateFromProps instead: Modal
componentWillUpdate: Please update the following components to use componentDidUpdate instead: Modal
I'll submit a PR for it!
Duplicate of https://github.com/reactstrap/reactstrap/issues/1159
@gergely-nagy any progress?
Same thing on Collapse:

I got this warning with Tooltip, if that helps.
I got this warning with Carousel.
Anyone interested in fixing this?
Here Is a starting point https://github.com/reactstrap/reactstrap/pull/1866
One test is failing. I can't alocate more time.
I got this warning with Tooltip
Also happening in Fade component
I got this warning with Collapse navbar.
Got this warning in
in Transition (created by Collapse)
in Collapse (at AppNavbar.js:24)
in div (created by Container)
in Container (at AppNavbar.js:21)
in nav (created by Navbar)
in Navbar (at AppNavbar.js:20)
in div (at AppNavbar.js:19)
in AppNavbar (at App.js:10)
in div (at App.js:9)
in App (at src/index.js:8)
in StrictMode (at src/index.js:7)
Carousel right now, no other places.react-transition-group, if you enable StrictMode, because it uses deprecated findDOMNode APISame thing on
Collapse:
Even I get similar warning, is there a work around or fix for this?
Workaround:
Remove strictMode from index.js
It is not resolved yet
@xreider do you want to help fixing it?
In index.js change React.StrictMode toReact.Fragment @@
Alert is causing this issue for me
switch to
React.Fragment is not an alternative for React.StrictMode 馃檪
@iamandrewluca CMIIW the problem comes from react-transition-groups (as you said). Reactstrap is using that library at version 2.9.0. But last version is 4.4.1. Would it still happen in a more recent version? What's blocking reactstrap from updating?
My guess is that the author wants to support React < 16.3 which has no the new Context API. But react-transition-groups@3 requires the new Context API
We don't have time to allocate for this. And because this will be a breaking change, we thought of making multiple breaking changes at a time. But for that we have to allocate a lot of time, which we don't have.
Yes, I found this warning as well, if you boys have any suggestions please step up and suggest. Thanks!
Most helpful comment
@gergely-nagy any progress?