fusing getQueriesData with useQueries() #5387
Unanswered
aggarwal-muskaan
asked this question in
Q&A
Replies: 0 comments
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.
-
Not able to fetch the cache data using getQueriesData() when fetched with useQueries() hook as we need to run multiple parallel API calls.
Expected behavior: We are getting the object populated with the data returned from the custom hook where the useQueries() call is made whereas the same data is not getting fetched when we use queryClient.getQueriesData().
Issue: We are getting undefined when fetching the cached data via the getQueriesClient() hook with the same queryKey used inside useQueries({queries:....})
Beta Was this translation helpful? Give feedback.
All reactions