Skip to content

ref: drop withOrganizations HoC#115321

Merged
evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/ref-drop-withorganizations-hoc
May 11, 2026
Merged

ref: drop withOrganizations HoC#115321
evanpurkhiser merged 1 commit into
masterfrom
evanpurkhiser/ref-drop-withorganizations-hoc

Conversation

@evanpurkhiser
Copy link
Copy Markdown
Member

Replace the last two consumers (notificationSettings and its controller) with useLegacyStore(OrganizationsStore) and delete the HoC. Both consumers were already function components, so no wrapper was needed.

Part of an ongoing cleanup of legacy withX HoCs in static/app/utils/.

@evanpurkhiser evanpurkhiser requested a review from a team May 11, 2026 20:28
@evanpurkhiser evanpurkhiser requested a review from a team as a code owner May 11, 2026 20:28
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 11, 2026
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-drop-withorganizations-hoc branch from 6ff3340 to 3914503 Compare May 11, 2026 20:31
Copy link
Copy Markdown
Member

@shashjar shashjar left a comment

Choose a reason for hiding this comment

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

big

Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 3914503. Configure here.

Replace the last two consumers (notificationSettings and its controller)
with useLegacyStore(OrganizationsStore) and delete the HoC. Both
consumers were already function components, so no wrapper was needed.
@evanpurkhiser evanpurkhiser force-pushed the evanpurkhiser/ref-drop-withorganizations-hoc branch from 3914503 to d2b6963 Compare May 11, 2026 20:35
@evanpurkhiser evanpurkhiser enabled auto-merge (squash) May 11, 2026 20:36
@github-actions
Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.47%

@evanpurkhiser evanpurkhiser merged commit 27aa21e into master May 11, 2026
75 of 76 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/ref-drop-withorganizations-hoc branch May 11, 2026 20:44
nikkikapadia pushed a commit that referenced this pull request May 12, 2026
Replace the last two consumers (`notificationSettings` and its
controller) with `useLegacyStore(OrganizationsStore)` and delete the
HoC. Both consumers were already function components, so no wrapper was
needed.
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