♻️ Update trpcs routes (#531)

This commit is contained in:
Luke Vella 2023-02-27 15:08:59 +00:00 committed by GitHub
parent d9f6a0d097
commit 18eca7cd8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 300 additions and 317 deletions

View file

@ -1,15 +1,12 @@
import { MutationCache } from "@tanstack/react-query";
import { httpBatchLink } from "@trpc/client";
import { createTRPCNext } from "@trpc/next";
import { createReactQueryHooks } from "@trpc/react-query";
import toast from "react-hot-toast";
import superjson from "superjson";
import { AppRouter } from "../server/routers/_app";
export const trpc = createReactQueryHooks<AppRouter>();
export const trpcNext = createTRPCNext<AppRouter>({
export const trpc = createTRPCNext<AppRouter>({
unstable_overrides: {
useMutation: {
async onSuccess(opts) {