Replies: 1 comment
-
This is not possible without a hack, we have an open issue similar to what you are asking, consider upvoting it: #13910 |
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.
-
Hi
I'm working an next js these days and i want to do something cool. when user make http request to my page i (for SEO) i want page render in Server Side and show all data at ones (i want fetch data at Server Side). but when page load completed and user navigate between pages using
next/lint
i want data render in Client Side (i want fetch data in Client Side). withgetInitialProps
we can do this let me show you an example.in this approach if there is request we fetch data at first place (Server Side Rendering) but if we navigating to this page with
next/link
it fetches data from client side (Client Side Rendering).But with these new data fetching methods
getStaticProps
andgetServerSideProps
i cant do above behavior.is there any one to help me to do above behavior with these new methods ? (
getStaticProps
andgetServerSideProps
). Thanks for reading my question.Beta Was this translation helpful? Give feedback.
All reactions