From 4bb2cdc2d2935d9f36d235f19b63d68c5ce4a7fa Mon Sep 17 00:00:00 2001 From: Robert Soriano Date: Sat, 29 Oct 2022 22:16:06 -0700 Subject: [PATCH] save trpc server error to client --- playground/pages/index.vue | 2 ++ src/client.ts | 28 ++++++++++++++++++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/playground/pages/index.vue b/playground/pages/index.vue index bd56eed..1327e96 100644 --- a/playground/pages/index.vue +++ b/playground/pages/index.vue @@ -26,6 +26,8 @@ const addTodo = async () => { } const { data: todos, pending, error, refresh } = await $client.todo.getTodos.query() + +console.log(typeof $client.todo.getTodos.query)