This repository has been archived on 2026-01-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2025-07-04 19:11:47 +03:00
|
|
|
import { Outlet, createRootRouteWithContext } from "@tanstack/react-router";
|
|
|
|
|
import { TanStackRouterDevtools } from "@tanstack/react-router-devtools";
|
|
|
|
|
import TanStackQueryLayout from "../integrations/tanstack-query/layout.tsx";
|
2025-07-03 14:01:40 +03:00
|
|
|
|
2025-07-04 19:11:47 +03:00
|
|
|
import type { QueryClient } from "@tanstack/react-query";
|
2025-07-03 14:01:40 +03:00
|
|
|
|
|
|
|
|
interface MyRouterContext {
|
2025-07-04 19:11:47 +03:00
|
|
|
queryClient: QueryClient;
|
2025-07-03 14:01:40 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const Route = createRootRouteWithContext<MyRouterContext>()({
|
2025-07-04 19:11:47 +03:00
|
|
|
component: () => (
|
|
|
|
|
<>
|
|
|
|
|
<Outlet />
|
2025-07-03 14:01:40 +03:00
|
|
|
|
2025-07-04 21:49:16 +03:00
|
|
|
{/* dev tools */}
|
|
|
|
|
<TanStackRouterDevtools />
|
2025-07-04 19:11:47 +03:00
|
|
|
<TanStackQueryLayout />
|
|
|
|
|
</>
|
|
|
|
|
),
|
|
|
|
|
});
|