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
Basically if you load the gql file inside the component where the useQuery hook is used, apollo treats the query as a new query object on reach re-render and makes it fire off the query again, and so on into a loop.
Possible to have in-built memoization for the loaded query? That seems to solve the issue.
The text was updated successfully, but these errors were encountered:
Referring to my issue here: apollographql/apollo-client#6770
Basically if you load the gql file inside the component where the useQuery hook is used, apollo treats the query as a new query object on reach re-render and makes it fire off the query again, and so on into a loop.
Possible to have in-built memoization for the loaded query? That seems to solve the issue.
The text was updated successfully, but these errors were encountered: