Merge pull request #32 from littlejon85/9-server-error-discard

fix: don't discard error in client
This commit is contained in:
Robert Soriano
2022-10-28 14:53:09 -07:00
committed by GitHub

View File

@@ -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)