-
Notifications
You must be signed in to change notification settings - Fork 921
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
Warning Warning: componentWillReceiveProps has been renamed, and is not recommended for use #634
Comments
I've left a similar comment on the issue: |
If you are impatient like me you can use patch-package. It is much easier than forking etc. The patch file I am using is here: |
Thanks @hlodver for sharing patch-package. It's exactly what I need. |
I am also waiting for this :v, is there any clue about when they are going to update it? |
same problem |
Problem occurs on this file also: https://github.com/casesandberg/react-color/blob/master/src/components/common/ColorWrap.js One possible approach: ...
import isEqual from 'lodash/isEqual';
...
export const ColorWrap = (Picker) => {
class ColorPicker extends (PureComponent || Component) {
...
componentDidUpdate(prevProps, prevState) {
if (! isEqual(this.props, prevProps))
this.setState({
...color.toState(this.props.color, this.state.oldHue)
});
}
...
}
...
} |
Has this project been abandoned? |
This was fixed with #662 and will be released shortly as |
Thanks @casesandberg |
I,m using last stable version and get this warning.
react-dom.development.js:12050 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
npx react-codemod rename-unsafe-lifecycles
in your project source folder.Please update the following components: ColorPicker, EditableInput
The text was updated successfully, but these errors were encountered: