Skip to content

usequery() result set to undefined while refetching after updating variable #1483

@andgith

Description

@andgith

Describe the bug
The value of result is undefined while a refetch occurs after a variable update.

const variables = ref({
  id: props.id,
  sort: sort.value,
  group: group.value,
});

const { result, error } = useQuery(searchQuery, () => variables);

Expected behavior
In versions before beta-2 did not set result to undefined during a refetch.

Versions
vue: 3.3.4
vue-apollo: ^4.0.0-beta.1
@apollo/client: 3.7.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions