Merge pull request #977 from buster-so/nate/header-sent-after

Added more header logic
This commit is contained in:
Nate Kelley 2025-09-17 10:41:34 -06:00 committed by GitHub
commit 471f58d0fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 3 additions and 5 deletions

View File

@ -33,7 +33,6 @@ export const Route = createFileRoute('/app')({
const { queryClient, supabaseSession } = context;
try {
await Promise.all([prefetchGetMyUserInfo(queryClient)]);
return {
supabaseSession,
};

View File

@ -10,6 +10,7 @@ const PRIMARY_APP_LAYOUT_ID = 'primary-sidebar';
const DEFAULT_LAYOUT: LayoutSize = ['230px', 'auto'];
export const Route = createFileRoute('/app/_app')({
ssr: false,
loader: async ({ context }) => {
const { queryClient } = context;
const [initialLayout] = await Promise.all([

View File

@ -12,15 +12,14 @@ const searchParamsSchema = z.object({
q: z.string().optional(),
submit: z
.preprocess((val) => {
if (typeof val === 'string') {
return val === 'true';
}
if (typeof val === 'string') val === 'true';
return val;
}, z.boolean())
.optional(),
});
export const Route = createFileRoute('/app/_app/home')({
ssr: false,
head: () => {
return {
meta: [

View File

@ -10,7 +10,6 @@ export const Route = createFileRoute('/app/_settings/_restricted_layout/_admin_o
throw redirect({ to: '/auth/login', replace: true, statusCode: 307 });
}
},
component: RouteComponent,
});