export QueryClientContext #3075
Unanswered
bertho-zero
asked this question in
Ideas
Replies: 1 comment 3 replies
-
would this PR be helpful? |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi,
I would like to do an equivalent of
contextSharing
but without going throughwindow
, just pick up the parentqueryClient
if it exists but its not possible because of that line:https://github.com/tannerlinsley/react-query/blob/ebf1e68a5258398ab02e9965c876a4f4dfc6f676/src/react/QueryClientProvider.tsx#L38
I could use the context to look if there is already in a queryClient context without throwing an error but it is not exported.
Beta Was this translation helpful? Give feedback.
All reactions