mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-07 05:01:49 +02:00
♻️ Update trpcs routes (#531)
This commit is contained in:
parent
d9f6a0d097
commit
18eca7cd8c
32 changed files with 300 additions and 317 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue