You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_Server.js_ is the entry point. It uses Express and passes requests to Next. Next SSR renders the pages using `getInitialProps()` hook from Apollo helper. Therefore the app makes GraphQL requests on the client or server.
77
+
_server.ts_ is the entry point. It uses Express and passes requests to Next. Next SSR renders the pages using `getServerSideProps()` hook from Apollo helper. Therefore the app makes GraphQL requests on the client or server.
78
78
79
-
When the client receives the page it preloads next page JS designated with`<Link prefetch href="/">`. When the client navigates to the linked page it only needs to make a GraphQL query to render. _Great!_
79
+
When the client loads the page it preloads next pages code from any`<Link href="/">`. When the client navigates to the next page it only needs to make one GraphQL query to render. _Great!_
80
80
81
81
See more: <ahref="https://github.com/zeit/next.js/">Next.js</a>,
0 commit comments