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
Warnings in reactstrap when using React's strict mode #1289
Comments
Oops |
@edmorley Can reactstrap use a recent version of Line 261 in 6ea2488
This error has been fixed in the package since v4. See https://github.com/reactjs/react-transition-group/blob/1fd4a65ac45edd2aea3dec18eeb8b9c07c7eb93f/CHANGELOG.md |
Yeap it can be updated, but there are some reasons why this is on hold Updating If people were more kindly to major releases and breaking changes, would be great 🙂 |
Here's my personal opinion:
|
Could you clarify why updating the dependency would mean a major version release? What kind of breaking changes would it introduce? |
Having this issue with the latest version ^8.5.1 |
i tried <React.Fragment> instead of <React.StrictMode> . it worked without that error |
I've this issue in version "8.6.0" too |
Not sure why this is closed, still happens to me on |
8.7.1 and still happens to me too when I open a modal. Maybe somebody should update the docs @ https://reactstrap.github.io/components/modals/ so the error/warning doesn't appear anymore. |
This is still an issue occurring in 2021, can I please get some help solving this error. It is really annoying |
I started using the Navbar component from the example in the official documentation and an error occurs: Legacy context API has been detected within a strict-mode tree. Please update the following components: Transition |
Please, reopen the issue. "Please update the following components: Transition" still exists. |
Hi, we are helping out as maintainers, at least until Bootstrap 5/Reactstrap 9 is stable. I will reopen, and could one of you please try the If still issue, please consider PR for issue resolution. Reactstrap 9 will be major version bump and an opportunity for breaking change. |
Hi, |
Thanks, I've updated rtg to v4, but need to test if addresses everything in this issue. |
This should be corrected by #2268 , we'll do a new prerelease this week and can try out. |
I guess it got removed from the actual bootstrap 5 upgrade as the warning seem to still exist. |
Bump |
Still not fixed (9.1.5) |
- remove findDomNode error which was thrown for components using Fade.js file in ReactStrict mode
This error persists for me! Still not fixed (9.1.5) |
Can confirm that this is still not fixed in 9.1.5 |
still, this warning occurs in my nextjs project |
The PR has not been merged. |
still happening in v9.1.5 |
same here on v9.1.5 |
same here with reactstrap v9.1.5 |
I'll put my name in the hat and add that I am running into this with 9.1.5 and 9.1.6. |
Still actual for |
Transition
,Modal
6.5.0
es
16.6.1
4.1.3
What is happening?
React 16.3 added a new strict mode, which highlights potential issues in an app (such as those that will cause problems when using the upcoming async mode):
https://reactjs.org/docs/strict-mode.html
Enabling it for our app resulted in several errors coming from
reactstrap
:-> see: https://reactjs.org/docs/strict-mode.html#detecting-legacy-context-api
-> see: https://reactjs.org/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage
-> see: https://reactjs.org/docs/strict-mode.html#identifying-unsafe-lifecycles
(this last one is half-covered by #1159, but not fully)
What should be happening?
No warnings/errors when using reactstrap with
React.StrictMode
.Steps to reproduce issue
3ad320d
)ui/job-view/index.jsx
to replace the render call with:yarn
yarn start
http://localhost:5000/#/jobs?repo=mozilla-inbound
), open devtools to the console tabError message in console
See above.
Code
See STR.
The text was updated successfully, but these errors were encountered: