captivationsoftware/react-sticky

Update "componentWillMount" to "componentDidMount"

slafleche opened this issue · 5 comments

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

i have the same issue

me too

arnm commented

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

This is a React 18 issue @arnm