Replies: 1 comment 3 replies
-
The page is rendered in the server and then exported as HTML, the client gets static HTML instead of having to wait for JavaScript to execute and display the page. You can more about that in Automatic Static Optimization What client only in that example means is that the page is not Server Side Rendered, because it doesn't have |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Looking at the
with-apollo
example, we see that there is a demonstration of a "client-only" page: https://github.com/zeit/next.js/blob/canary/examples/with-apollo/pages/client-only.jsHowever, when I run this example locally, and put a console log before returning the "client only" page jsx, I see that the console log prints on the server, which confuses me. How can I write a page so that it is truly only rendered on the client?
Beta Was this translation helpful? Give feedback.
All reactions