diff --git a/apps/web/src/app.tsx b/apps/web/src/app.tsx index 18527fcc4..d4471e14e 100644 --- a/apps/web/src/app.tsx +++ b/apps/web/src/app.tsx @@ -34,14 +34,21 @@ import { ShellChromeProvider } from "./shell/shell-chrome-provider"; function OnboardingGate({ navigate, user, + onSignOut, }: { readonly navigate: Navigate; readonly user: SessionUser; + readonly onSignOut: () => void; }) { + // The provider step's hub calls are queries and mutations too, so + // onboarding needs its own client just like the shell does. + const queryClient = useMemo(() => createAppQueryClient(onSignOut), [onSignOut]); return ( - - - + + + + + ); } @@ -159,7 +166,7 @@ export function App({ return ; } if (path === ONBOARDING_PATH) { - return ; + return ; } return ; }