Skip to content

fetchResults has no change on useQuery #1060

Closed
@brunomperes

Description

@brunomperes

Describe the bug
On v4, passing the option fetchResults: false to useQuery has no effect (and if it had any I'm not clear how it is different from enabled: false)

To Reproduce
Steps to reproduce the behavior:

  1. Add fetchResults: false option to a component with composition API
  2. Render the page
  3. See component still fetching results on the server and on the client

Expected behavior
From what I see this option only exists in the v4 branch in a doc page and in a test.

So perhaps it's a leftover from v3 and it's just a matter of removing it.

If it is to be implemented though, ideally would be clear what is the difference between fetchResults and enabled

Versions
vue: 2.6.12
vue-apollo: v4.0.0-alpha.10
apollo-client: 3.1.2

Additional context
Link to docs page: https://v4.apollo.vuejs.org/api/use-query.html#parameters

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions