Open source alternative to Semrush and Ahrefs
TypeScript backlink-analysisgoogle-search-console-mcpkeyword-researchmcpseoseo-agentseo-auditseo-automationseo-skillsseo-toolssite-audit
fix(onboarding): isolate cached routing state per request (#459)
Ben Senescu189d5bfa1f2b
diff --git a/src/routes/_authenticated.onboarding.index.tsx b/src/routes/_authenticated.onboarding.index.tsxindex 2ffee348..fff825b9 100644--- a/src/routes/_authenticated.onboarding.index.tsx+++ b/src/routes/_authenticated.onboarding.index.tsx@@ -21,6 +21,10 @@ const clampStep = (step: number) =>Math.min(Math.max(0, Math.trunc(step)), ONBOARDING_LAST_STEP);export const Route = createFileRoute("/_authenticated/onboarding/")({+ // The app renders inside ClientOnly, and this guard reads account-scoped data+ // through a module-scoped query client. Keep it out of server requests so one+ // worker isolate cannot reuse another account's cached onboarding state.+ ssr: false,// Step lives in the URL so it survives refresh and works with back/forward.validateSearch: (search: Record<string, unknown>): { step: number } => {const raw = Number(search.step);