-
next-urql requires one to use getInitialProps so it's quite hard to use it with this library |
Beta Was this translation helpful? Give feedback.
Answered by
Axedyson
Jun 3, 2022
Replies: 1 comment 2 replies
-
Okay the solution is simply to export a non-getInitialProps data fetching next.js function and use that instead of getInitialProps whenever I have to do data fetching during SSR. There is now more code to maintain but I guess this is the only solution |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Axedyson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Okay the solution is simply to export a non-getInitialProps data fetching next.js function and use that instead of getInitialProps whenever I have to do data fetching during SSR. There is now more code to maintain but I guess this is the only solution