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

UI: Upgrade manager to react 18 #24514

Merged
merged 66 commits into from
Oct 19, 2023
Merged

UI: Upgrade manager to react 18 #24514

merged 66 commits into from
Oct 19, 2023

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Oct 19, 2023

Replaces: #21673

Closes #20378
Closes #22217

What i did:

Upgrade react and some testing deps then fix the fallout.

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • If this PR should be tested against many or all sandboxes,
    make sure to add the ci:merged or ci:daily GH label to it.
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "documentation", "maintenance", "dependencies", "other"]

Copy link
Contributor

@valentinpalkovic valentinpalkovic left a comment

Choose a reason for hiding this comment

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

Code-wise LGTM! Do you want me to test something in particular @ndelangen?

@socket-security
Copy link

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: @types/react@16.14.50, @types/react-dom@16.9.21

Copy link
Contributor

@cdedreuille cdedreuille left a comment

Choose a reason for hiding this comment

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

Thanks a lot! LGTM.

Copy link
Contributor

@JReinhold JReinhold left a comment

Choose a reason for hiding this comment

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

A few questions, LGTM! 💪

code/lib/react-dom-shim/src/preset.ts Show resolved Hide resolved
code/ui/blocks/src/components/ArgsTable/ArgJsDoc.tsx Outdated Show resolved Hide resolved
The state merging of useAddonState needed a fix because the merger function wasn't called with the correct data, due to react18 using async rendering, making this.state be the old state.
@ndelangen ndelangen merged commit 3d978f5 into release-8-0 Oct 19, 2023
49 of 51 checks passed
@ndelangen ndelangen deleted the norbert/react18 branch October 19, 2023 22:38
@vanessayuenn vanessayuenn added this to the 8.0 breaking changes milestone Dec 11, 2023
@sookmax sookmax mentioned this pull request Apr 9, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants