Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Merge branch 'main' into sb/batch-http-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Barlow authored May 7, 2021
2 parents b2ceab4 + 6ab4885 commit 1d4b1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/development-testing/static-typing.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const AllPeopleComponent = <Query<Data, Variables> query={ALL_PEOPLE_QUERY}>

Now the `<Query />` component render prop function arguments are typed. Since we are not mapping any props coming into our component, nor are we rewriting the props passed down, we only need to provide the shape of our data and the variables for full typing to work! Everything else is handled by React Apollo's robust type definitions.

This approach is the exact same for the `<Query />`, `<Mutation />`, and `<Subcription />` components! Learn it once, and get the best types ever with Apollo.
This approach is the exact same for the `<Query />`, `<Mutation />`, and `<Subscription />` components! Learn it once, and get the best types ever with Apollo.

### Extending components

Expand Down

0 comments on commit 1d4b1fa

Please sign in to comment.