diff options
Diffstat (limited to 'packages/browser-extension/src/providers.tsx')
| -rw-r--r-- | packages/browser-extension/src/providers.tsx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/packages/browser-extension/src/providers.tsx b/packages/browser-extension/src/providers.tsx deleted file mode 100644 index a055f3d1..00000000 --- a/packages/browser-extension/src/providers.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; -import { httpBatchLink } from "@trpc/client"; -import React, { useState } from "react"; -import { trpc } from "./trpc"; - -export function App() { - const [queryClient] = useState(() => new QueryClient()); - const [trpcClient] = useState(() => - trpc.createClient({ - links: [ - httpBatchLink({ - url: "http://localhost:3000/trpc", - // You can pass any HTTP headers you wish here - async headers() { - return { - // authorization: getAuthCookie(), - }; - }, - }), - ], - }), - ); - return ( - <trpc.Provider client={trpcClient} queryClient={queryClient}> - <QueryClientProvider client={queryClient}> - {/* Your app here */} - </QueryClientProvider> - </trpc.Provider> - ); -} |
