Skip to content

Commit

Permalink
Use new components from TanStack Router
Browse files Browse the repository at this point in the history
  • Loading branch information
petervmeijgaard committed Feb 16, 2025
1 parent ed585ea commit dd050fb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@ import { env } from "@/lib/client/env";
import appCss from "@/styles/app.css?url";
import { type QueryClient } from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { createRootRouteWithContext, Outlet } from "@tanstack/react-router";
import {
createRootRouteWithContext,
HeadContent,
Outlet,
Scripts,
} from "@tanstack/react-router";
import { TanStackRouterDevtools } from "@tanstack/router-devtools";
import { Meta, Scripts } from "@tanstack/start";
import { PropsWithChildren } from "react";

export const Route = createRootRouteWithContext<{
Expand Down Expand Up @@ -54,7 +58,7 @@ function RootDocument({ children }: PropsWithChildren) {
return (
<html>
<head>
<Meta />
<HeadContent />
</head>
<body>
{children}
Expand Down

0 comments on commit dd050fb

Please sign in to comment.