Skip to content

Commit

Permalink
Add watchQuery to docs for react-apollo. (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
dahjelle authored and Sashko Stubailo committed Jun 23, 2016
1 parent e806a5e commit 15577ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/apollo-client/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Example use cases: `Infinite scroll`, `Data filtering`

<h2 id="additional-props">Additional Props</h2>

Redux's connect will pass `dispatch` as a prop unless action creators are passed using `mapDispatchToProps`. Likewise, the Apollo connect exposes part of the apollo-client api to props under the keys `query` and `mutate`. These correspond to the Apollo methods and can be used for custom needs outside of the ability of the wrapper component.
Redux's connect will pass `dispatch` as a prop unless action creators are passed using `mapDispatchToProps`. Likewise, the Apollo connect exposes part of the apollo-client api to props under the keys `query`, `watchQuery`, and `mutate`. These correspond to the Apollo methods and can be used for custom needs outside of the ability of the wrapper component.

<h2 id="using-with-redux">Using in concert with Redux</h2>

Expand Down

0 comments on commit 15577ee

Please sign in to comment.