i'm confused honestly, again and even more than before

This commit is contained in:
2025-04-22 05:01:43 +02:00
parent d0d14d46c6
commit 647d1ff38a

View File

@@ -57,6 +57,12 @@ export function TRPCReactProvider(props: { children: React.ReactNode }) {
headers.set('x-trpc-source', 'nextjs-react') headers.set('x-trpc-source', 'nextjs-react')
return headers return headers
}, },
fetch: (url, options) => {
return fetch(url, {
...options,
keepalive: true,
})
},
}), }),
], ],
}) })