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

getDataFromTree vs Automatic Static Optimization #108

Open
jaexplorer opened this issue Feb 10, 2020 · 0 comments
Open

getDataFromTree vs Automatic Static Optimization #108

jaexplorer opened this issue Feb 10, 2020 · 0 comments

Comments

@jaexplorer
Copy link

Hi,
Sorry if this is a noob question, i'm new to Apollo and can't seem to find good documentation surrounding the tradeoffs.

From my understanding, we want SSR and SEO so wouldn't getDataFromTree be the best choice all the time? Even at the cost of performance?
It is also my understanding that Automatic Static Optimization does this for you and detects whether you have queries to run or not (does this mean you don't need to worry about loading states with components with queries?). Or you can manually include getDataFromTree only for pages that have queries.

Also, apparently you can do ssr: true somewhere above cache in the parameters - whats this do?

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

1 participant