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:
Joakim Jäderberg
2025-04-01 06:43:54 +00:00
parent dff67ea568
commit 87d97db324
10 changed files with 313 additions and 263 deletions

View File

@@ -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