Replies: 1 comment
-
Wanted to add that I've managed to get access to the context, initializing a client especially for SSR for the pages I need it. I don't know if it's the way to go. But I believe that even if it's possible, we would have to use the |
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
-
Hi,
First, thank everybody to provide and help us with Urql.
We are using Next.js (pages folder) and Urql. We need to set a token as a header into our graphql client request.
Because it's a session token, we would like to access it with cookies/headers.
But we can't manage, for now, to access the context from our Urql client. It stays undefined, no matter if the SSR option is set to true or false.
Also, we would need the urql client to work on SSR and CSR.
Is there some documented way of achieving that ?
Thank you !
Beta Was this translation helpful? Give feedback.
All reactions