We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
React is updating their way of handling the componentWillReceiveProps, so if you get this error.
You can update this:
componentWillReceiveProps(nextProps) { if(nextProps.UI.errors){ this.setState({ errors: nextProps.UI.errors }); } }
to this:
static getDerivedStateFromProps(props) { if (props.UI.errors) { return { errors: props.UI.errors } } }
you could keep using the first function above but would need to change it into UNSAFE_componentWillReceiveProps
UNSAFE_componentWillReceiveProps
The text was updated successfully, but these errors were encountered:
No branches or pull requests
React is updating their way of handling the componentWillReceiveProps, so if you get this error.
You can update this:
to this:
you could keep using the first function above but would need to change it into
UNSAFE_componentWillReceiveProps
The text was updated successfully, but these errors were encountered: