apollo-client: Fragment already exists warning

Steps to reproduce

  1. Create a named fragment
  2. Use it in multiple places

Example of usage

const query = gql`
  query Goal($id: [Int!]) {
    goals(id: $id) {
      ...Goal
    }
  }
  ${Goal.fragments.goal}
`;

Expected

No warnings

Result

Warning that the fragment already exists

Info

app@1.0.0
├── apollo-client@0.5.5 
├── graphql-tag@0.1.17 
└── react-apollo@0.6.0 

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 2
  • Comments: 22 (16 by maintainers)

Commits related to this issue

Most upvoted comments

0.6 and 0.7 have been released which should include this fix 🎉

Let us know if you are still seeing problems.

@tmeasday yeah, we haven’t removed it yet, but it’s slated for 0.6, which I’m planning to release next week with a bunch of new features and an update to the typings.

Correct.