Replies: 2 comments 13 replies
-
|
Beta Was this translation helpful? Give feedback.
-
however, composing query functions from other queries of the same client seems useful. for example, you can currently do this via:
if the query function is not inlined, passing the client is necessary, so I agree that having the client injected might be useful in some cases. I'll definitely think about it :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My use case:
queryClient
, which is NOT an argument of the function but should be optained independantly. In most cases usinguseQueryClient
should be enough, but in my case I build the query objects outside my React components, so I cannot use hook.Maybe there's a better way to handle it but I think passing
queryClient
to theinitialData
makes sense as it is a very common workflow, in the same way as the queryKey is passed to the queryFunctionBeta Was this translation helpful? Give feedback.
All reactions