Skip to content

Commit 100510c

Browse files
committed
Update from suggestions
1 parent b0aa430 commit 100510c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/source/data/fragments.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,12 +1795,12 @@ For more information about other overridable types in Apollo Client, see the [Ty
17951795
17961796
### Unique names
17971797
1798-
Fragment names must be unique across your entire application. If you reuse a fragment name, the `graphql-tag` library warns about the conflict at runtime to help prevent bugs:
1798+
Fragment names must be unique across your entire application. If you reuse a fragment name, `graphql-tag` provides a warning about the conflict at runtime to help you identify the issue:
17991799
18001800
```text
18011801
Warning: fragment with name SomeFragment already exists.
18021802
graphql-tag enforces all fragment names across your application to be unique; read more about
18031803
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names
18041804
```
18051805
1806-
As a best practice, use descriptive, component-scoped fragment names (like `ItemFragment` or `UserProfileFragment`) to avoid name collisions.
1806+
As a best practice, use descriptive, component-scoped fragment names (like `CartItemFragment` or `UserProfileCardFragment`) to avoid name collisions.

0 commit comments

Comments
 (0)