captivationsoftware/react-sticky

componentWillMount will be deprecated soon

Opened this issue ยท 7 comments

I'm submitting a ...

  • feature request (kinda)

In the future, componentWillMount is going to be deprecated. Looks like this is going to be in the next version of react, as 16.9.0-alpha.0 generates the following warning:

react-dom.development.js:11963 Warning: componentWillMount is deprecated and 
   will be removed in the next major version. Use componentDidMount instead. As a 
   temporary workaround, you can rename to UNSAFE_componentWillMount.

Please update the following components: Sticky

Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks

Demo here

If you'd like, I can make a PR fixing this.

would be cool if this would be fixed soon!

My console is now getting a big yellow warning about componentWillMount being deprecated. Will react-sticky be updated soon so we can get rid of this error?

image

Here is a pull request for the warning: #292

Since it seems this lib is dead (#291), does anyone know a worthy alternative that plays nice with React 16.11?

Any updates on this? Thanks!

I normally hate this kind of thing, but since React 17 is now in RC, I've forked and merged #292 as a stop gap between now and the revival of this repo.

Published to npm as react-sticky-17.

My apologies go out to the maintainers of this repository.

@ebrearley: That's great, thanks for taking the initiaive!

There's a note in the readme of this repo that it won't be maintained any more (since Oct 2019), so I think a fork is probably appropriate. Are you able to maintain your fork moving forward? Happy to help out if it will make the difference between a yes and a no :)