Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test skip: true and useLazyQuery with options.defaultOptions #9666

Merged

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented May 3, 2022

This PR started as a regression test for PR #9665, but one test led to another, and I found/fixed a few bugs along the way.

Issues potentially solved:

benjamn added 5 commits May 3, 2022 17:02
This test started out as a regression test for PR #9665, but it revealed
a few other problems that I will fix in the next commit, potentially
solving issue #9655 as well.
This makes the objects returned by createWatchQueryOptions more
consistent with each other, which prevents unnecessary calls to
this.observable.reobserve in some edge cases. To see what I'm talking
about, try reverting this commit and running 'npm test'. The test I
recently added should fail because it makes too many requests.
This fixes a bug where an incorrect value for initialFetchPolicy could
clobber the desired policy, typically resetting it to cache-first.
@brainkim
Copy link
Contributor

brainkim commented May 3, 2022

Looks good!

@brainkim brainkim merged commit a9c7c36 into main May 3, 2022
benjamn added a commit that referenced this pull request May 3, 2022
benjamn added a commit that referenced this pull request May 3, 2022
@benjamn benjamn deleted the test-skip-unskip-and-useLazyQuery-with-defaultOptions branch May 3, 2022 22:33
@benjamn benjamn linked an issue May 3, 2022 that may be closed by this pull request
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useLazyQuery executes query twice the first time on 3.6.x
2 participants