We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388ae1b commit 7145d61Copy full SHA for 7145d61
grocery-list-mern/src/utils/trpc.ts
@@ -0,0 +1,6 @@
1
+import { ServerRouter } from '@/server/router';
2
+import { createReactQueryHooks } from '@trpc/react';
3
+
4
+const trpc: ReturnType<typeof createReactQueryHooks<ServerRouter>> =
5
+ createReactQueryHooks<ServerRouter>();
6
+export { trpc };
0 commit comments