Closed j0lvera closed 5 years ago
I think you might be doing something wrong, the context parameter should be passed in on both client and server, see https://nextjs.org/docs/#fetching-data-and-component-lifecycle
🤦🏾♂️ you're right, I was doing it wrong. My apologies. Thanks for the quick response!
If I try to use it in the browser I get the error because in the browser
ctx
is undefined and we need to check for that before checking ifctx.req
is defined.