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

Update "componentWillMount" to "componentDidMount" #326

Open
slafleche opened this issue Mar 12, 2022 · 5 comments
Open

Update "componentWillMount" to "componentDidMount" #326

slafleche opened this issue Mar 12, 2022 · 5 comments

Comments

@slafleche
Copy link

React is complaining about the use of componentWillMount.

Warning: componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.

* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.

Please update the following components: Sticky
@pranahonk
Copy link

i have the same issue

@frsnmk
Copy link

frsnmk commented Jun 12, 2022

me too

@arnm
Copy link

arnm commented Aug 12, 2022

Just to clarify this is when using React 18. When using React 17 I do not see this issue

@carlosbaraza
Copy link

This is a React 18 issue @arnm

@seangibeault
Copy link

bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants