Skip to content

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

@ivoiv

Description

@ivoiv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions