From 4f66f147618c151b0666181adb07f674260b5fa0 Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Wed, 3 Sep 2025 12:47:35 -0400 Subject: [PATCH] remove react-query tab sharing cache --- www/app/lib/apiHooks.ts | 2 +- www/app/lib/queryClient.tsx | 6 ------ www/package.json | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/www/app/lib/apiHooks.ts b/www/app/lib/apiHooks.ts index 7b82b65b..348e7c73 100644 --- a/www/app/lib/apiHooks.ts +++ b/www/app/lib/apiHooks.ts @@ -64,7 +64,7 @@ export function useTranscriptsSearch( }, }, { - enabled: true, // anonymous enabled + enabled: true, }, ); } diff --git a/www/app/lib/queryClient.tsx b/www/app/lib/queryClient.tsx index 70dbbc87..bd5946e0 100644 --- a/www/app/lib/queryClient.tsx +++ b/www/app/lib/queryClient.tsx @@ -1,7 +1,6 @@ "use client"; import { QueryClient } from "@tanstack/react-query"; -import { broadcastQueryClient } from "@tanstack/query-broadcast-client-experimental"; export const queryClient = new QueryClient({ defaultOptions: { @@ -16,8 +15,3 @@ export const queryClient = new QueryClient({ }, }, }); - -broadcastQueryClient({ - queryClient, - broadcastChannel: "reflector-query-client", -}); diff --git a/www/package.json b/www/package.json index a083594d..402abfdb 100644 --- a/www/package.json +++ b/www/package.json @@ -17,7 +17,6 @@ "@fortawesome/free-solid-svg-icons": "^6.4.0", "@fortawesome/react-fontawesome": "^0.2.0", "@sentry/nextjs": "^7.77.0", - "@tanstack/query-broadcast-client-experimental": "^5.85.9", "@tanstack/react-query": "^5.85.9", "@vercel/edge-config": "^0.4.1", "@whereby.com/browser-sdk": "^3.3.4",