-
-
Notifications
You must be signed in to change notification settings - Fork 14
possible add nextauthjs / react-query in existing react-query ? - No QueryClient set, use QueryClientProvider to set one #7
Comments
could you please provide a reproduction? we are using it at work with an existing react-query setup |
Hey @balazsorban44, Thanks for the tool. I'm facing the same issue. Here is a minimal version to reproduce it: https://github.com/Fghurayri/repro-nextjs-nextauth-rq-issue |
Facing the same response, almost identical implementation. Thanks |
thanks, will have a look |
Same issue when I just replaced original session from next-auth with code above (no other changes, no react-query implemented). |
without a query client provider, this won't work though! so that's a different issue |
I did some changes, could someone verify that |
@heteibako could you please verify the package versions in node_modules and your lock file? also your next version and next config js? I tried this at work with next 10.x and had no problems! |
Will get back to you tomorrow. Maybe I will try to delete the package.json lock file as well. |
What is supposed to be in the
|
I was just curious. The best thing would be a full reproduction, maybe your repo is public? |
@balazsorban44 it seems like you can still reproduce it with https://github.com/Fghurayri/repro-nextjs-nextauth-rq-issue |
I'm facing the same issue with latest version |
same issue |
i got below error if i use the useQuery hook and pass fetchSession to it Unhandled Runtime Error |
Same issue here. v0.0.12 nextjs 11.0.1. |
This error happens when you have two installations of the same package. When using For now I did the same as @phyolim. I just stole the |
@italodeandra you might be right. the maintenance overhead almost doesn't worth it having a separate package... copy pasting the index file is probably enough for anyone interested in this. 😬 |
Hey guys, what's the solution for this issue? |
I currently don't have the bandwidth to maintain this package, and given how simple the source code is, it might be a better idea to simply provide it as a snippet in the docs, rather than a package. Could you copy paste the source code and tell me if the problem goes away? 🙏🙄 |
Just tried it out by just copying the source code -> doesn't work either. Looking into it now, as it behaves really strange imo Edit: works now, the error was on my behalf! Anyone trying to get this working with TypeScript: copy the typings from the index.d.ts and add them to your copied source code from this lib. Works absolutely fine! |
Hi there! It looks like this issue hasn't had any activity for a while. It will be closed if no further activity occurs. If you think your issue is still relevant, feel free to comment on it to keep it open. Thanks! |
Hi there! It looks like this issue hasn't had any activity for a while. To keep things tidy, I am going to close this issue for now. If you think your issue is still relevant, just leave a comment and I will reopen it. Thanks! |
I am sory maybe sounds like the questions. I've existing next auth, and react-query setup. then i adding
/nextauthjs/react-query
lib withand i got some error
No QueryClient set, use QueryClientProvider to set one
any or something wrong or need additional setup on my code?
The text was updated successfully, but these errors were encountered: