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

Data prefetch when changing pages #54

Closed
fatlinesofcode opened this issue Aug 30, 2019 · 2 comments
Closed

Data prefetch when changing pages #54

fatlinesofcode opened this issue Aug 30, 2019 · 2 comments

Comments

@fatlinesofcode
Copy link

Is it possible to pre-fetch the data from the queries before the page does a client side render?
Prefetching seems to work fine for SSR but i if transition to another page the graphql queries run after the next page render.

I noticed this didnt happen with https://github.com/lfades/next-with-apollo
The behaviour there is: click on link, query requested and completes, then the page transitions and the next page is rendered with the data.

@adamsoffer
Copy link
Owner

adamsoffer commented Sep 1, 2019

@fatlinesofcode I just published v3.1.4 so it's now more in line with what's in the official example. Can you confirm it behaves in the same way now?

@fatlinesofcode
Copy link
Author

hi @adamsoffer thanks for the follow up, but we've decided to run apollo at the _app level now instead.

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

No branches or pull requests

2 participants