Closed
Description
Intended outcome:
The defaultOptions.watchQuery.nextFetchPolicy
setting should always be applied for the query, even if the query variables change. I am setting it to cache-only
to retain the behavior from #6353
Actual outcome:
When the query variables change, the defaultOptions
are unset. This results in unexpected network calls after cached data changes.
How to reproduce the issue:
Simple repro here: https://github.com/jebonfig/react-apollo-error-template
Versions
System:
OS: macOS High Sierra 10.13.6
Binaries:
Node: 11.2.0 - /usr/local/bin/node
npm: 6.4.1 - /usr/local/bin/npm
Browsers:
Chrome: 84.0.4147.125
Safari: 13.1.2
npmPackages:
@apollo/client: ^3.1.3 => 3.1.3