From 8a2fbf1d6ab146075d6adbb66a8d6c4fffe0943f Mon Sep 17 00:00:00 2001 From: Vladut Date: Wed, 13 Dec 2023 08:44:38 +0200 Subject: [PATCH] Fix trpc errors deserialization --- src/link/internal/base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/internal/base.ts b/src/link/internal/base.ts index d3cffe2..e70b4da 100644 --- a/src/link/internal/base.ts +++ b/src/link/internal/base.ts @@ -31,7 +31,7 @@ export const createBaseLink = ( if (id !== trpc.id) return; if ('error' in trpc) { - const error = runtime.transformer.deserialize(trpc.error); + const error = trpc.error; observer.error(TRPCClientError.from({ ...trpc, error })); return; }