Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop using loader in component after upgradring @apollo/client from 3.0.2 to 3.1.2 #116

Open
ivoiv opened this issue Aug 4, 2020 · 0 comments

Comments

@ivoiv
Copy link

ivoiv commented Aug 4, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant