-
Notifications
You must be signed in to change notification settings - Fork 30
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
upgrade React to 17.0.2 #2806
upgrade React to 17.0.2 #2806
Conversation
@@ -83,6 +83,7 @@ class Rating extends React.Component<RatingPropsType> { | |||
(arg0: React.MouseEvent<HTMLSpanElement>) => unknown | |||
> = []; | |||
|
|||
// It's a typo, should be componentWillReceiveProps (UNSAFE_componentWillReceiveProps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we fix this? what is the solution here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The solution would be to use UNSAFE_componentWillReceiveProps
but this will change behaviour of the component as the previous componentWillReciveProps
was never called.
Other solution would be to remove it completely
No description provided.