Skip to content

(feat) add global prefetch apollo provider option #710

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

Merged
merged 1 commit into from
Sep 3, 2019
Merged

(feat) add global prefetch apollo provider option #710

merged 1 commit into from
Sep 3, 2019

Conversation

Austio
Copy link
Contributor

@Austio Austio commented Jul 22, 2019

This PR adds the ability to turn off prefetching globally during SSR.

Background and usage:

We have a very large graph that serves out requests. Sometimes we will get in a situation where we need to be able to troubleshoot a slow or bad server side render. During this we will normally add a query parameter and if that is preset, we bypass graphql.

With the move to 3.0 and nuxt we no longer have the option to getMatchedComponents and manually run the vue-apollo queries, so to get that behavior we need a way to signal to vue-apollo to not make the requests.

@Akryum Akryum merged commit b0861dd into vuejs:master Sep 3, 2019
@Akryum
Copy link
Member

Akryum commented Sep 3, 2019

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants