Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Describe the bug
Setting the
debounce
option makes the query fetch twice (2 network calls). Once for the initial fetch, then another after the debounce duration. Only happens with afetchPolicy
ofcache-and-network
ornetwork-only
. The debounce seems to be ignored when it's set to other fetch policies.To Reproduce
Steps to reproduce the behavior:
Expected behavior
cache-and-network
andnetwork-only
.Versions
vue: 2.6.11
vue-apollo: 4.0.0-alpha.8
apollo-client: 2.6.8
Additional context
When the fetch policy is set to
cache-and-network
ornetwork-only
, it fetches twice as described. However, it works as expected after any variable changes afterwards on the mentioned fetch policies.On other fetch policies, it seems to be ignored even after
variables
changes. Is this intended?