From 647d1ff38aa3491b9dd127e10371972396ab2f3f Mon Sep 17 00:00:00 2001 From: Andres Date: Tue, 22 Apr 2025 05:01:43 +0200 Subject: [PATCH] i'm confused honestly, again and even more than before --- src/trpc/react.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/trpc/react.tsx b/src/trpc/react.tsx index a4c7697..cc5c41f 100644 --- a/src/trpc/react.tsx +++ b/src/trpc/react.tsx @@ -57,6 +57,12 @@ export function TRPCReactProvider(props: { children: React.ReactNode }) { headers.set('x-trpc-source', 'nextjs-react') return headers }, + fetch: (url, options) => { + return fetch(url, { + ...options, + keepalive: true, + }) + }, }), ], })