From 31abdfb5aad169b040cdce21d0aef294f6cfe626 Mon Sep 17 00:00:00 2001 From: Kiet Ho Date: Wed, 29 Apr 2026 12:32:12 -0700 Subject: [PATCH] perf(desktop): unbatch host-service tRPC client Switch host-service-client from httpBatchLink to httpLink so calls to the local host service no longer wait on the slowest procedure in a batch. --- apps/desktop/src/renderer/lib/host-service-client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/renderer/lib/host-service-client.ts b/apps/desktop/src/renderer/lib/host-service-client.ts index f4e12cb57cd..737b79c4032 100644 --- a/apps/desktop/src/renderer/lib/host-service-client.ts +++ b/apps/desktop/src/renderer/lib/host-service-client.ts @@ -1,5 +1,5 @@ import type { AppRouter } from "@superset/host-service"; -import { createTRPCClient, httpBatchLink } from "@trpc/client"; +import { createTRPCClient, httpLink } from "@trpc/client"; import superjson from "superjson"; import { getHostServiceHeaders } from "./host-service-auth"; @@ -20,7 +20,7 @@ export function getHostServiceClientByUrl(hostUrl: string): HostServiceClient { const client = createTRPCClient({ links: [ - httpBatchLink({ + httpLink({ url: `${hostUrl}/trpc`, transformer: superjson, headers: () => getHostServiceHeaders(hostUrl),