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

feat(ui): Wrap react select to remove defaultprops #83617

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

scttcper
Copy link
Member

@scttcper scttcper commented Jan 16, 2025

Removes default props for react 19 compatibility. React select itself has so many default props it seems important to re-apply those.

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

Removes default props for react 19 compatibility. React select itself has so many default props it seems important to re-apply those.
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 16, 2025
mergeStyles,
ReactSelect,
selectComponents,
} from 'sentry/components/forms/controls/reactSelectWrapper';
Copy link
Contributor

Choose a reason for hiding this comment

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

the wrapper is good trick 👍 . Maybe we should accommodate it with an update to the restrictedImportPaths in our eslint config to avoid accidental direct imports of react-select:

const restrictedImportPaths = [

@scttcper scttcper marked this pull request as ready for review February 8, 2025 01:32
@scttcper scttcper requested review from a team as code owners February 8, 2025 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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