Replies: 1 comment 1 reply
-
Hi! Would love to help but can't spot any bug quickly. One question though is why using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I am working on a graphql based application with
Next.js
, and trying to use SWR to improve the user experience. I created a hook to bootstrap the graphql request, called useGql.js. The code is attached below:useGql.js
However, the return value of useSWR (ie: data, error) never return value (ie: being
undefined
) coming from thefetch
function. I tried many other ways and other package, but nothing works.Thanks for reading longgg text. Please help me!
Beta Was this translation helpful? Give feedback.
All reactions