Merged in fix/pageview-tracking (pull request #1687)
Fix/pageview tracking * Restructure pageview tracking * Update trpc version and turn off batching * Remove unused state and remove logs * cleanup * remove unused code and console.logs Approved-by: Linus Flood
This commit is contained in:
@@ -5,7 +5,7 @@ import {
|
||||
QueryClient,
|
||||
QueryClientProvider,
|
||||
} from "@tanstack/react-query"
|
||||
import { httpBatchLink, loggerLink, TRPCClientError } from "@trpc/client"
|
||||
import { httpLink, loggerLink, TRPCClientError } from "@trpc/client"
|
||||
import { useState } from "react"
|
||||
|
||||
import { login } from "@/constants/routes/handleAuth"
|
||||
@@ -30,8 +30,7 @@ function initializeTrpcClient() {
|
||||
typeof window !== "undefined") ||
|
||||
(opts.direction === "down" && opts.result instanceof Error),
|
||||
}),
|
||||
httpBatchLink({
|
||||
fetch,
|
||||
httpLink({
|
||||
transformer,
|
||||
/**
|
||||
* This is locally in Next.js
|
||||
|
||||
Reference in New Issue
Block a user