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

deps(ui): Upgrade emotion #84259

Merged
merged 6 commits into from
Feb 5, 2025
Merged

deps(ui): Upgrade emotion #84259

merged 6 commits into from
Feb 5, 2025

Conversation

scttcper
Copy link
Member

@scttcper scttcper commented Jan 29, 2025

unblocks part of react 19 https://github.com/getsentry/frontend-tsc/issues/68

Our HoC's that use generics to set prop types are hitting a bug in the emotion types emotion-js/emotion#3261 but we aren't really changing these very often or adding new ones.

tests using react-select see minor speed improvements (non scientific benchmark using github actions) because of emotion-js/emotion#2815 no longer creating error stacks on every render

before
widgetBuilder/widgetBuilderSortBy.spec.tsx (55.529 s)
alerts/create.spec.tsx (52.456 s)

after
widgetBuilder/widgetBuilderSortBy.spec.tsx (45.639 s)
alerts/create.spec.tsx (41.514 s)

didn't realize they had merged emotion-js/emotion#2815 which should give our tests that still use react-select a decent performance bump
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 29, 2025
# Conflicts:
#	static/app/utils/withSavedSearches.tsx
#	static/app/utils/withTeamsForUser.tsx
@scttcper scttcper marked this pull request as ready for review February 5, 2025 17:18
@scttcper scttcper requested review from a team as code owners February 5, 2025 17:18
Copy link
Member

@ryan953 ryan953 left a comment

Choose a reason for hiding this comment

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

prop-spreading is happening in different order in each component... ie: {...props} org={org} vs org={org} {...props}. But it is consistent with how it was before.

@scttcper scttcper merged commit f594677 into master Feb 5, 2025
44 checks passed
@scttcper scttcper deleted the scttcper/upgrade-emotion branch February 5, 2025 18:39
andrewshie-sentry pushed a commit that referenced this pull request Feb 5, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants