How to call getServerSideProps hook? #2406
Replies: 1 comment 1 reply
-
Hi there,
First, Second, because Hydrogen v1 is built using React Server Components, you can fetch the data from your external API from within a server component. You can also fetch data from a client component, but in most cases it's better to fetch from the server if you have the option. Take a look into docs for I hope this helps! |
Beta Was this translation helpful? Give feedback.
-
I am new to hydrogen and my task is
So in order to achieve that
But this
getServerSideProps
is never called ( I don't see the log )How can I do that?
Beta Was this translation helpful? Give feedback.
All reactions