save trpc server error to client

This commit is contained in:
Robert Soriano
2022-10-29 22:16:06 -07:00
parent 29909328c4
commit 4bb2cdc2d2
2 changed files with 26 additions and 4 deletions

View File

@@ -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)
</script>
<template>