You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when calling useQuery while passing through a client the query always returns loading true and reruns infinitely. This doesn't happen when using the client from the context. This error sounds very similar to apollographql/react-apollo#3270 and apollographql/react-apollo#3774 and a few more.
In your example, you're re-creating the client on every re-render, which is why you see infinite rerunning. Make sure that you're using the same client instance between re-renders.
It seems that when calling
useQuery
while passing through a client the query always returns loading true and reruns infinitely. This doesn't happen when using the client from the context. This error sounds very similar to apollographql/react-apollo#3270 and apollographql/react-apollo#3774 and a few more.How to reproduce the issue:
Versions
The text was updated successfully, but these errors were encountered: