react-loadable
react-loadable copied to clipboard
Updated componentWillMount to componentDidMount
I was using this in my project and i saw its using componentWillMount which will be deprected in the new version of react so i updated it with componentDidMount. To avoid deprecation and remove the warning
Also interested in this change 🎉
Any plan on merging this PR? and release date?
Can someone help merge this PR and publish the lib :)
Seems like a very small change for this codebase, would love to see it merged and published soon!
Guys, I considered react-loadable has not been maintaining, please migrate to other package such as react-imported-component
, loadable-component
...
Good luck.
Anyone can merge this PR? I got same warning.
same warning. any update?
why this PR wont be merged?
I don't mean to harp on this pull request but it's a one line change that has been open for 2 months with no update. Can we please have some communication for the cause of the hold up?
Thanks!
Hi all, I put the fixed version with addition of build files in my github repo so you can change your npm package to this if you need a quick fix.
should look like this in package.json:
"react-loadable": "github:p0o/react-loadable",
@p0o it works, thanks. I cloned this repo, and found "yarn start" not work at all.
@cnscorpions I think I built it with npm.
So it is clear that we will be migrating off react-loadable at some point. I certainly understand the challenges of donating your time to an open source project.
However, those of us in larger projects can't necessarily do that immediately. We also can't cutover to a random github fork, as there is no guarantee that won't change or disappear.
So, in the meantime, we would really appreciate it if the maintainers of this repo could take the few minutes it would take to merge this PR and publish a new patch version to npm. 🙏
Thanks for your time and for building this very useful tool.
So it is clear that we will be migrating off react-loadable at some point. I certainly understand the challenges of donating your time to an open source project. However, those of us in larger projects can't necessarily do that immediately. We also can't cutover to a random github fork, as there is no guarantee that won't change or disappear. So, in the meantime, we would really appreciate it if the maintainers of this repo could take the few minutes it would take to merge this PR and publish a new patch version to npm. 🙏 Thanks for your time and for building this very useful tool.
Suggestion: You can fork my repo up there into your github organization or publish your npm package if you need a more reliable solution.
For anyone interested, here's my solution to get rid of the warning (React 16 + 17) and still get this working (client+SSR).
https://github.com/jamiebuilds/react-loadable/pull/213#issuecomment-778246548