diff --git a/frontend/app/root.tsx b/frontend/app/root.tsx index e49194c..dd5055d 100644 --- a/frontend/app/root.tsx +++ b/frontend/app/root.tsx @@ -12,6 +12,10 @@ import { } from "react-router"; import { MainLoading } from "~/components/MainLoading/MainLoading"; import type { Route } from "./+types/root"; +import { ApolloClient } from "@apollo/client"; +import { HttpLink } from "@apollo/client"; +import { InMemoryCache } from "@apollo/client"; +import { ApolloProvider } from "@apollo/client/react"; import { Toaster } from "~/components/ui/Toast"; import { TooltipProvider } from "~/components/ui/Tooltip"; @@ -32,6 +36,11 @@ const queryClient = new QueryClient({ }, }); +const apolloClient = new ApolloClient({ + link: new HttpLink({ uri: "http://localhost:3001/graphql" }), + cache: new InMemoryCache(), +}); + export function HydrateFallback() { return ; } @@ -71,16 +80,18 @@ export function Layout({ children }: { children: React.ReactNode }) { - - -
- {children} -