Skip to content

'error' value not updated after correct next result received  #900

Open
@gbouteiller

Description

@gbouteiller

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions