Open
Description
Describe the bug
When an error
occurs on useQuery
and then a result is received afterwards, the error
reference is not updated.
Use case
I get an unauthenticated error during an anonymous query and I expect the error to be gone after login. The result is correctly set but the unauthenticated error is still set.
Expected behavior
error
should be set to null
after a correct next result.
Versions
vue: 2.6.11
vue-apollo: 4.0.0-alpha.4
apollo-client: 2.6.8
Additional context
It seems like the error value is only updated in the processError
function if an error occurs but never reset.