You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
455 B
TypeScript
16 lines
455 B
TypeScript
// import { createTRPCProxyClient, httpBatchLink } from "@trpc/client";
|
|
import { createTRPCContext } from "@trpc/tanstack-react-query";
|
|
import type { AppRouter } from "./router.js";
|
|
|
|
export const { TRPCProvider, useTRPC, useTRPCClient } =
|
|
createTRPCContext<AppRouter>();
|
|
|
|
// export const trpc = createTRPCProxyClient<AppRouter>({
|
|
// links: [
|
|
// httpBatchLink({
|
|
// url: "/api/trpc",
|
|
// methodOverride: "POST",
|
|
// }),
|
|
// ],
|
|
// });
|