diff --git a/docs/content/1.get-started/3.tips/5.headers.md b/docs/content/1.get-started/3.tips/5.headers.md index 035b7a9..81c05a3 100644 --- a/docs/content/1.get-started/3.tips/5.headers.md +++ b/docs/content/1.get-started/3.tips/5.headers.md @@ -14,9 +14,7 @@ export default defineNuxtPlugin(() => { links: [ httpBatchLink({ headers() { - return { - ...unref(headers) - } + return headers } }), ], diff --git a/playground/plugins/trpc-client.ts b/playground/plugins/trpc-client.ts index 0c6b85d..2e6a69a 100644 --- a/playground/plugins/trpc-client.ts +++ b/playground/plugins/trpc-client.ts @@ -16,9 +16,7 @@ export default defineNuxtPlugin(() => { httpBatchLink({ url: 'http://localhost:3000/api/trpc', headers () { - return { - ...unref(headers) - } + return headers } }) ]