mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
Merge pull request #32 from littlejon85/9-server-error-discard
fix: don't discard error in client
This commit is contained in:
@@ -57,9 +57,9 @@ export async function useAsyncQuery<
|
||||
() => $client.query(...pathAndInput),
|
||||
// @ts-expect-error: Internal
|
||||
options,
|
||||
)
|
||||
)
|
||||
|
||||
if (process.server && error.value && !serverError.value)
|
||||
if (error.value && !serverError.value)
|
||||
serverError.value = error.value as any
|
||||
|
||||
if (data.value)
|
||||
|
||||
Reference in New Issue
Block a user