-
Notifications
You must be signed in to change notification settings - Fork 4k
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 about lifecycle methods #3741
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you've completed all the fields in the issue template so we can best help. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
I can confirm this as well. I see it for more than just I'm sure most of us have seen it but here are the release notes from React that outline the change that causes this issue: https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#renaming-unsafe-lifecycle-methods |
Suggest running the codemod to rename the lifecycle hooks. This will stop the warning messages. |
Folks, thank you for mentioning the issue 👍 |
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
Please update the following components: Dropdown, Menu Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
Please update the following components: Dropdown |
Is this different to #2732? |
Executed via `npx react-codemod rename-unsafe-lifecycles --parser babel` Disabled lint issues for updated lines. Closes Semantic-Org#3741 Related to Semantic-Org#2732
@charliematters yep, in this issue we should fix warnings related to these methods via |
PR with fixes was merged, the release with these changes will be shipped during next week 🚀 |
Hey @layershifter |
It was released in |
Hey @layershifter |
Have you upgraded to the latest? And why are you thinking that it's related to SUIR? |
The |
Yes, I see. I just check latest version of redux-modal ^3.0.2: https://github.com/yesmeck/redux-modal/commits/master. They haven't updated "componentWillReceiveProps" hook yet. Hope we will have the version update the warning soon. |
Each of the warnings lists out the components that are in violation, immediately jumping out at me are react-router, and react-redux. Some are harder to recognize but I'd focus on those two first |
import { Header, Divider, Select } from 'semantic-ui-react'; These warnings still appear for me. |
Bug Report
Steps
Use
Dropdown
with[email protected]
and[email protected]
Open your console to see the warnings
Expected Result
No warnings should appear
Actual Result
Version
0.87.3
Testcase
https://codesandbox.io/s/semantic-ui-react-y6s9z?fontsize=14
The text was updated successfully, but these errors were encountered: