-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat(ui): Upgrade to react 18.3 #83334
Conversation
Upgrading to react 18.3 helps with the react 19 migration by displaying various warnings for features that are removed in react 19. https://react.dev/blog/2024/04/25/react-19-upgrade-guide part of getsentry/frontend-tsc#68
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Bundle ReportChanges will increase total bundle size by 530 bytes (0.0%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: app-webpack-bundle-array-pushAssets Changed:
Files in
|
# Conflicts: # package.json # yarn.lock
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
# Conflicts: # package.json # yarn.lock
// TODO: Remove after either the removal of AsyncComponent or migrating the tests not to use contexts | ||
if ( | ||
/uses the legacy contextTypes API which is no longer supported/.test(errorMessage) | ||
) { |
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.
prevents one of the new warnings from failing tests for AsyncComponent
/uses the legacy contextTypes API/, | ||
// TODO(react19): Another error from AsyncComponent. | ||
// <ComponentName> declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored. | ||
/declares both contextTypes and contextType static properties/, |
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.
optional, but the warnings are annoying if you're working on an async component
https://react.dev/blog/2024/04/25/react-19-upgrade-guide
part of https://github.com/getsentry/frontend-tsc/issues/68