Replies: 1 comment 2 replies
-
yes, but you need v5 to do that, because that's where we added the functionality to pass a queryClient to the hooks as an argument. |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
I want to build a library that has React Query as a dependency. I then want that library to set up its own query client, which is isolated to that lib. I assume this is fine, right? I figured the library could create its own query client, and rather than use React Query's context provider, it could use its own provider, and then pass the
client
to each hook. Does this sound right? Thanks!Beta Was this translation helpful? Give feedback.
All reactions