-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Usage of legacy context API #1340
Comments
The
|
I'll submit a PR for it! |
Duplicate of #1159 |
@gergely-nagy any progress? |
I got this warning with |
I got this warning with Carousel. |
Anyone interested in fixing this? |
I got this warning with Tooltip |
Also happening in Fade component |
I got this warning with Collapse navbar. |
Got this warning in |
We know about this issue.Legacy context is used only in
|
Workaround: |
It is not resolved yet |
@xreider do you want to help fixing it? |
In index.js change |
Alert is causing this issue for me |
switch to <React.Fragment> in index.js |
|
@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 |
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! |
Has this issue really been on for more than two years? I keep getting an error when using the |
thankx :) |
|
Deleting "<React.Fragment>" in the index.js file may also be effective. But since I'm newbie to React, I'm not sure how the right step is |
selamlar , direkt olarak bütün dosyalar için fragment verilmesi en mantıklısı. İhtimale dayalı bir kod aslında. Araştırdım biraz |
@iamandrewluca Can the removal of the legacy APIs be part of the 9.0 release? |
This issue still are going on ? Isn't unsafe and dangerous to disable StrictMode ? |
@sbaechler , @Allakazan yes we have an opportunity now with the upcoming 9.x release. |
I've updated rtg to v4 in linked PR, but need to test if addresses everything in this issue. Carousel looks like still uses legacy context, but the RTG bump will help in most cases. If Carousel can be updated easily before 9.x release we can do it, but seems could also be a point fix after that too. PRs are welcome: https://github.com/reactstrap/reactstrap/blob/master/src/Carousel.js#L27 |
Also updated Carousel context issue in #2268 |
TabPane
,Dropdown(,Item,Menu,Toggle)
,Manager
,PopperTargetHelper
,CarousellItem
(see https://github.com/reactstrap/reactstrap/search?q=contextTypes&unscoped_q=contextTypes)6.5.0
es
16.7.0
4.2.1
What is happening?
When using
<React.StrictMode>
Reacts advises against using the legacy context API:What should be happening?
Reactstrap should be using the new Context API.
Steps to reproduce issue
Wrap an example app using some of the components mentions at the beginning in
React.StrictMode
and start it in development mode.Code
https://stackblitz.com/edit/reactstrap-saxswj?file=Example.js
The text was updated successfully, but these errors were encountered: