Skip to content
Discussion options

You must be logged in to vote

When navigating to your page that contains getServerProps via next/link, your getServerProps function will be executed.

If you look at your network requests in your browser when you navigate to this page via next/link you'll see an XHR call to /_next/data/development/<name_of_your_page>.json. This is fetching the data as if it were an API call when you navigate client side.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by jamesmosier
Comment options

You must be logged in to vote
1 reply
@jamesmosier
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants