Skip to content

Commit f64f99c

Browse files
Sbussisoclaude
andcommitted
fix(planinfo): gate useOrganization() behind isSignedIn
PlanInfoProvider wraps the entire app at main.jsx, so its useOrganization() call ran on every public-page render — Clerk logged "useOrganization requires an active user session" on every visit to /, /pricing, and /docs. Split the provider in two: an outer wrapper that returns an empty context when the user isn't signed in, and an inner ActivePlanInfoProvider that owns the useOrganization() call and only mounts once useAuth() reports a session. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 15b8aa8 commit f64f99c

8 files changed

Lines changed: 32 additions & 11 deletions

File tree

backend/static/assets/AdminPage-D5xtZGQz.js renamed to backend/static/assets/AdminPage-Ckpe-dUu.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/static/assets/DashboardPage-DWYZVLmw.js renamed to backend/static/assets/DashboardPage-BxMIF-yV.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/static/assets/SettingsPage-D4We_vSJ.js renamed to backend/static/assets/SettingsPage-GUfcmzp2.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)