useQuery generate a loop of API calls in the UI #337
Unanswered
bitforcesrl
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i'm using the doc example:
i've added Test cmp in the productDetails.client but it works but in the network tab tons of api calls are fired
as i can read here
https://react-query.tanstack.com/overview
it says that we should add
<QueryClientProvider client={queryClient}>
wrapper but it's not mentioned on hydrogen dochttps://shopify.dev/api/hydrogen/hooks/global/usequery
and the useQuery hook comes from the hydrogen lib not the react-query
Beta Was this translation helpful? Give feedback.
All reactions