Skip to content

Commit 27a6ae5

Browse files
committed
docs: improve fragment names section phrasing
Remove 'accidentally' - the warning is about intentional reuse, and 'graphql-tag' is an implementation detail that users don't need to know about.
1 parent b863bfb commit 27a6ae5

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
@@ -43,15 +43,15 @@ Changes to the `NameParts` fragment automatically update the fields included in
4343

4444
## Unique fragment names {#unique-names}
4545

46-
Fragment names must be unique across your entire application. If you accidentally reuse a fragment name, `graphql-tag` warns you about the conflict at runtime to prevent subtle bugs:
46+
Fragment names must be unique across your entire application. If you reuse a fragment name, the `graphql-tag` component will warn about the conflict at runtime to prevent subtle bugs:
4747

4848
```text
4949
Warning: fragment with name SomeFragment already exists.
5050
graphql-tag enforces all fragment names across your application to be unique; read more about
5151
this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names
5252
```
5353

54-
Always use descriptive, component-scoped fragment names (like `ItemFragment` or `UserProfileFragment`) to avoid accidental name collisions.
54+
Always use descriptive, component-scoped fragment names (like `ItemFragment` or `UserProfileFragment`) to avoid name collisions.
5555

5656
## Example usage
5757

0 commit comments

Comments
 (0)