Skip to content
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

I am using reduxForm HOC and I have such warnings #4713

Open
AshotHeb opened this issue Dec 24, 2020 · 1 comment · May be fixed by #4788
Open

I am using reduxForm HOC and I have such warnings #4713

AshotHeb opened this issue Dec 24, 2020 · 1 comment · May be fixed by #4788
Labels

Comments

@AshotHeb
Copy link

Warning: Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.

  • Move code with side effects to componentDidMount, and set initial state in the constructor.

Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details

Move data fetching code or side effects to componentDidUpdate.

  • If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
@sbaechler
Copy link

Relates to #4721

@sbaechler sbaechler linked a pull request Jun 13, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants