Skip to content
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

Merged
merged 6 commits into from
Jul 18, 2024
Merged

upgrade React to 17.0.2 #2806

merged 6 commits into from
Jul 18, 2024

Conversation

krzotki
Copy link
Contributor

@krzotki krzotki commented Jul 4, 2024

No description provided.

package.json Outdated Show resolved Hide resolved
@@ -83,6 +83,7 @@ class Rating extends React.Component<RatingPropsType> {
(arg0: React.MouseEvent<HTMLSpanElement>) => unknown
> = [];

// It's a typo, should be componentWillReceiveProps (UNSAFE_componentWillReceiveProps)
Copy link
Member

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?

Copy link
Contributor Author

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

@krzotki krzotki marked this pull request as ready for review July 5, 2024 14:28
@krzotki krzotki merged commit cba5c6f into master Jul 18, 2024
5 checks passed
@krzotki krzotki deleted the upgrade-react branch July 18, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants