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

Migrate to React v18 (vol 2) #1208

Merged
merged 18 commits into from
Nov 26, 2024
Merged

Migrate to React v18 (vol 2) #1208

merged 18 commits into from
Nov 26, 2024

Conversation

japauliina
Copy link
Contributor

  • Re-apply changes of #1192
  • Temporary remove HDS and comment out code that uses it
  • Use legacy-peer-deps flag in install

This will remedy deprecated React component lifecycle warnings.
ReadFeedbackLink requires fi/sv/en unit names, thus introduce defaults for them.
This fixes warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>
This fixes warning: validateDOMNesting(...): <div> cannot appear as a descendant of <div>
defaultProps is a legacy way of setting default values to props in React components.
It is recommended to use default parameters in function components instead.
ListItem button-attribute has been removed in Material UI v6.
Use ListItemButton instead.
This is a breaking change between react-leaflet v3 and v4: https://github.com/PaulLeCam/react-leaflet/blob/master/CHANGELOG.md#v400-2022-04-18.
Fixed by using `ref` callback instead of `whenCreated`.
Also update Leaflet interactive focus outline to none as it
generates undesired blue outlines for geometry extends to the map.
Updates:
- Prefer configuration file over command line arguments
- Move SMCookies under new feature-flag
- Update tests to automatically accept cookie consents when needed
@japauliina japauliina requested a review from mhieta November 26, 2024 10:45
Copy link
Contributor

@mhieta mhieta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! :shipit:

Temporary remove HDS and comment out code that uses it to fix the React
v18 upgrade issues.
Use legacy-peer-deps flag in install to bypass the peer dependency
conflicts.
@japauliina japauliina force-pushed the react-18-upgrade-vol-2 branch from b1df904 to fd49667 Compare November 26, 2024 11:31
@mhieta mhieta merged commit 61a38e0 into develop Nov 26, 2024
3 checks passed
@mhieta mhieta deleted the react-18-upgrade-vol-2 branch November 26, 2024 12:20
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.

2 participants