Skip to content

Any idea how I can use this with next-urql? #1842

Answered by Axedyson
Axedyson asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jmcoder1
Comment options

@jmcoder1
Comment options

Answer selected by Axedyson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants