apollo icon indicating copy to clipboard operation
apollo copied to clipboard

fetchResults has no change on useQuery

Open brunomperes opened this issue 5 years ago • 1 comments

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

brunomperes avatar Sep 24 '20 08:09 brunomperes

This seems to be still an issue or it requires some documentation.

karladler avatar Jul 20 '22 14:07 karladler

any update here?

karladler avatar Jan 24 '24 11:01 karladler