"Skip" property of useQuery hook has no effect
Author: limekilnCreated Sep 13, 2019Updated Jul 17, 2020
Labelsreproduction-needed
Intended outcome:
Using the skip property of useQuery, I expect the query not to be executed as long as skip === true.
Actual outcome:
No matter which value skip has, the query is always executed.
Version
System:
- OS: Linux 5.0 Ubuntu 19.04 (Disco Dingo)
- Binaries:
- Node: 12.3.0 - /usr/local/bin/node
- npm: 6.11.2 - /usr/local/bin/npm
- Browsers:
- Firefox: 69.0
- npmPackages:
- apollo-cache-inmemory: ^1.6.3 => 1.6.3
- apollo-client: ^2.6.4 => 2.6.4
- apollo-link-http: ^1.5.16 => 1.5.16
- react-apollo: ^3.1.0 => 3.1.0
Source: apollographql/react-apollo