mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-30 19:57:54 +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),
|
() => $client.query(...pathAndInput),
|
||||||
// @ts-expect-error: Internal
|
// @ts-expect-error: Internal
|
||||||
options,
|
options,
|
||||||
)
|
)
|
||||||
|
|
||||||
if (process.server && error.value && !serverError.value)
|
if (error.value && !serverError.value)
|
||||||
serverError.value = error.value as any
|
serverError.value = error.value as any
|
||||||
|
|
||||||
if (data.value)
|
if (data.value)
|
||||||
|
|||||||
Reference in New Issue
Block a user