Skip to content

Commit

Permalink
use new head method
Browse files Browse the repository at this point in the history
  • Loading branch information
dotnize committed Nov 17, 2024
1 parent 01c2784 commit 39e73cf
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,22 @@ export const Route = createRootRouteWithContext<{ queryClient: QueryClient }>()(
const user = await getUser();
return { user };
},
head: () => ({
meta: [
{
charSet: "utf-8",
},
{
name: "viewport",
content: "width=device-width, initial-scale=1",
},
{
title: "TanStarter",
},
],
links: [{ rel: "stylesheet", href: appCss }],
}),
component: RootComponent,
meta: () => [
{
charSet: "utf-8",
},
{
name: "viewport",
content: "width=device-width, initial-scale=1",
},
{
title: "TanStarter",
},
],
links: () => [{ rel: "stylesheet", href: appCss }],
});

function RootComponent() {
Expand Down

0 comments on commit 39e73cf

Please sign in to comment.