Repository navigation
Does getServerSideProps()run only the first time user visits the page, or is it also being executed when the user navigates to the page using next/link?
#28782
Unanswered
lumenwrites
asked this question in
Help
Replies: 0 comments
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.
Let's say user visits the
/browse-postspage, and I usegetServerSideProps()to fetch the posts. The user navigates usingLinkto another page and creates a new post, and then navigates back to/browse-posts. Will the user see the old posts, that were passed to react the first time the page got rendered, or willgetServerSideProps()get executed again, and the user will see the updated posts?All reactions