How to check if component is being server side rendered #14617
Unanswered
serendipity1004
asked this question in
Help
Replies: 1 comment
-
Yes,
When you use Please take a look at the docs for detailed information. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently working on a project that uses Apollo GraphQL and NextJS. I have structured the project quite commonly by having components folder and containers folder where container folders include Apollo states. At first, I thought it would be possible to call
getServerSideProps
from the components and containers but it doesn't seem to be the case. So currently I am calling the queries in the page that uses the containers and usinguseQuery
hook in the container to retrieve the state. Then I begin to wonder if the container will be server rendered or not. How do I check if a component is being fully server rendered with the states that I expect to be present?Beta Was this translation helpful? Give feedback.
All reactions