-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
how to use disableCorePrefetching? true or false? #9827
Comments
@TylerBarnes Please check the below code snippet where gatsby/packages/gatsby-plugin-guess-js/src/gatsby-browser.js Lines 1 to 29 in 2605aa0
|
Also, would you like to raise a PR to fix the documentation for the same? I would be happy to help you out if you are interested. |
I'll make a PR for sure! |
<!-- Q. Which branch should I use for my pull request? A. Use `master` branch (probably). Q. Which branch if my change is a bug fix for Gatsby v1? A. In this case, you should use the `v1` branch Q. Which branch if I'm still not sure? A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :) Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2. Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/ --> This closes #9827
<!-- Q. Which branch should I use for my pull request? A. Use `master` branch (probably). Q. Which branch if my change is a bug fix for Gatsby v1? A. In this case, you should use the `v1` branch Q. Which branch if I'm still not sure? A. Use `master` branch. Ask in the PR if you're not sure and a Gatsby maintainer will be happy to help :) Note: We will only accept bug fixes for Gatsby v1. New features should be added to Gatsby v2. Learn more about contributing: https://www.gatsbyjs.org/docs/how-to-contribute/ --> This closes gatsbyjs#9827
Summary
I'm building a starter/plugin that allows for previewing changes in a WordPress source gatsby site. I'm generating a preview version of the site to be used by WP and I want to disable prefetching since I'm also going to disable navigation from previews. The docs are a little unclear on how to use this api. When I just return true or false to it, it breaks. If I return a function which returns a bool, it doesn't say anything.
I'm wondering if I should be returning true or false or something else entirely.
Thanks!
The text was updated successfully, but these errors were encountered: