Skip to content

fix: Stop mutating server-side org on org selection#1100

Closed
charlesvien wants to merge 1 commit into03-03-fix_update_title_prompt_scope_reauth_during_onboarding_header_overflowfrom
03-03-stop_mutating_server-side_org_on_org_selection
Closed

fix: Stop mutating server-side org on org selection#1100
charlesvien wants to merge 1 commit into03-03-fix_update_title_prompt_scope_reauth_during_onboarding_header_overflowfrom
03-03-stop_mutating_server-side_org_on_org_selection

Conversation

@charlesvien
Copy link
Member

@charlesvien charlesvien commented Mar 4, 2026

Related issue to come back to this later #1101

  1. Remove switchOrganization which PATCHed /@me to mutate the user's active org server-side
  2. Simplify OrgBillingStep to just store the selection client-side (no async, no server mutation)
  3. Add useAllOrgProjects hook (onboarding only) that fetches project details per-ID via project-scoped endpoints
  4. Keep useProjects using currentUser.organization.teams (zero extra API calls on normal app load)

Copy link
Member Author

charlesvien commented Mar 4, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant