Skip to content

Commit

Permalink
Merge pull request apollographql#3779 from apollographql/hwillson/def…
Browse files Browse the repository at this point in the history
…ault-options-docs

Doc change for `defaultOptions.watchQuery` when using React Apollo [apollographql#3779]
  • Loading branch information
hwillson authored Aug 3, 2018
2 parents 4d7b3ea + 8c3ca7e commit d93b70f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/source/api/apollo-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const defaultOptions = {

These options will be merged with options supplied with each request.

> **Note:** The React Apollo `<Query />` component uses Apollo Client's `watchQuery` functionality, so if you would like to set `defaultOptions` when using `<Query />`, be sure to set them under the `defaultOptions.watchQuery` property.
The `ApolloClient` class is the core API for Apollo, and the one you'll need to use no matter which integration you are using:

{% tsapibox ApolloClient.constructor %}
Expand Down

0 comments on commit d93b70f

Please sign in to comment.