diff --git a/packages/vue-apollo-composable/src/useQuery.ts b/packages/vue-apollo-composable/src/useQuery.ts index ef6a096..da31693 100644 --- a/packages/vue-apollo-composable/src/useQuery.ts +++ b/packages/vue-apollo-composable/src/useQuery.ts @@ -210,6 +210,7 @@ export function useQueryImpl< } started = true + error.value = null loading.value = true const client = resolveClient(currentOptions.value?.clientId) @@ -422,6 +423,7 @@ export function useQueryImpl< if (variables) { currentVariables = variables } + error.value = null return query.value.refetch(variables) } } @@ -430,6 +432,7 @@ export function useQueryImpl< function fetchMore (options: FetchMoreQueryOptions & FetchMoreOptions) { if (query.value) { + error.value = null return query.value.fetchMore(options) } }