Skip to content

Commit

Permalink
Apply @saihaj's suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
  • Loading branch information
charlypoly and saihaj authored Nov 29, 2022
1 parent 24933d3 commit c05d92e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/src/pages/plugins/presets/preset-client.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const getStaticProps = pluginGetStaticProps(__filename)

---

The `client-preset` provides typed GraphQL operations (Query, Mutation Subscription) by perfectly integrating with your favorite GraphQL clients:
The `client-preset` provides typed GraphQL operations (Query, Mutation and Subscription) by perfectly integrating with your favorite GraphQL clients:

- **React**

Expand Down Expand Up @@ -58,7 +58,7 @@ This section covers this concept and associated options in details.

Fragment Masking helps expressing components data-dependencies with GraphQL Fragments.

By doing so, we ensure that the tree of data is properly passed down to the good components, without "leaking" of data.
By doing so, we ensure that the tree of data is properly passed down to the components without "leaking" data.
It also allow to colocate the Fragment definitions with their components counterparts:

```tsx filename="src/Film.tsx" {4-11}
Expand Down Expand Up @@ -197,7 +197,7 @@ export default config

### Getting a Fragment's type

To get a Fragment's type is achieved by importingimport the type that corresponds to your fragment, which is named based on the fragment name with a `Fragment` suffix:
To get a Fragment's type is achieved by importing the type that corresponds to your fragment, which is named based on the fragment name with a `Fragment` suffix:

```tsx filename="src/Film.tsx" {1, 8, 15}
import { FilmItemFragment } from './gql'
Expand Down

0 comments on commit c05d92e

Please sign in to comment.