-
Notifications
You must be signed in to change notification settings - Fork 96
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
CMS 5: Still using various deprecated lifecycle events which should be avoided #1414
Comments
Sadly we will not get to this in CMS5. |
Reopening - we could happily do this in a minor and it does need to be done eventually. |
As far as I can tell we've overestimated the amount of work required in this issue, I could only find a single relevant component that needed updating. All the other components were updated as part of #1312 I search searched sink 5.0 for the following strings that would mean the deprecated lifecycle methods are actually being called:
It only matched bundle.js style files + the 2x files included in the PRs above |
PRs merged |
#1312 results in some regressions which we've decided to handle as separate issues. This is one of those.
Many of our react components implement a
componentWillReceiveProps
method. This results in a console warning that this method is deprecated. We should refactor our components to not use this method to avoid upgrade pains in the future.There may be other deprecated lifecycle events in use as well.
Acceptance Criteria
componentWillReceiveProps
Notes
npx react-codemod rename-unsafe-lifecycles
to suppress console warnings - but that should be a last resort (we'll have to remove them eventually)PRs
The text was updated successfully, but these errors were encountered: