Skip to content

Commit

Permalink
Update react-apollo.md (#4468)
Browse files Browse the repository at this point in the history
change `client` prop description for `Mutation` and `Subscription` components
  • Loading branch information
cs-miller authored and benjamn committed Apr 8, 2019
1 parent 67c2945 commit 7b026d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/api/react-apollo.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ The Mutation component accepts the following props. Only `mutation` and `childre
<dt>`context`: Record<string, any></dt>
<dd>Shared context between your Mutation component and your network interface (Apollo Link). Useful for setting headers from props or sending information to the `request` function of Apollo Boost.</dd>
<dt>`client`: ApolloClient</dt>
<dd>An `ApolloClient` instance. By default `Query` uses the client passed down via context, but a different client can be passed in.</dd>
<dd>An `ApolloClient` instance. By default `Mutation` uses the client passed down via context, but a different client can be passed in.</dd>
</dl>

<h3 id="mutation-render-prop">Render prop function</h3>
Expand Down Expand Up @@ -197,7 +197,7 @@ The Subscription component accepts the following props. Only `subscription` and
<dt>`fetchPolicy`: FetchPolicy</dt>
<dd>How you want your component to interact with the Apollo cache. Defaults to "cache-first".</dd>
<dt>`client`: ApolloClient</dt>
<dd>An `ApolloClient` instance. By default `Query` uses the client passed down via context, but a different client can be passed in.</dd>
<dd>An `ApolloClient` instance. By default `Subscription` uses the client passed down via context, but a different client can be passed in.</dd>
</dl>

<h3 id="subscription-render-prop">Render prop function</h3>
Expand Down

0 comments on commit 7b026d2

Please sign in to comment.