Closed iksent closed 3 years ago
Hey @iksent ! I'm a bit confused by the issue you're encountering. This is the intended behavior of next (first page request is rendered server side and subsequent requests are handled by client).
Yes, you are right: this is how getInitialProps works (Server side for the first load, then client side).
Do you know if this is OK for SEO?
Google crawlers open all <Link />
elements as a new page, right?
Yeah since every page is sever rendered it’s good for SEO. On Nov 10, 2020, 22:38 -0800, Ilya Belousov notifications@github.com, wrote:
Yes, you are right: this is how getInitialProps works (Server side for the first load, then client side). Do you know if this is OK for SEO? Google crawlers open all elements as a new page, right? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Hello! I have a similar problem to this one: https://github.com/adamsoffer/next-apollo/issues/54
Everything works just fine, when open any page at the first time - all requests are done at the server side. But when trying to navigate from page to page, the requests are done at the client side.
I tried to use requests at the root pages components - same result. And tried to wrap pages components withApollo - same result.
Some details:
Also I wrapped
_app.js
component withwithApollo
, because I need one request's data for all pages.My
withApollo.ts
: