Skip to content

Commit

Permalink
Merge pull request #4969 from apollographql/hwillson/return-partial-data
Browse files Browse the repository at this point in the history
Add `returnPartialData` to the API docs
  • Loading branch information
hwillson authored Jun 15, 2019
2 parents 7be7b38 + b4d23ae commit a0e14f3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
### Apollo Client (vNext)

- Documentation updates. <br/>
[@michael-watson](https://github.com/michael-watson) in [#4940](https://github.com/apollographql/apollo-client/pull/4940)
[@michael-watson](https://github.com/michael-watson) in [#4940](https://github.com/apollographql/apollo-client/pull/4940) <br/>
[@hwillson](https://github.com/hwillson) in [#4969](https://github.com/apollographql/apollo-client/pull/4969)


## Apollo Client (2.6.2)
Expand Down
2 changes: 2 additions & 0 deletions docs/source/api/react-apollo.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ The Query component accepts the following props. Only `query` and `children` are
<dd>If `true`, perform a query `refetch` if the query result is marked as being partial, and the returned data is reset to an empty Object by the Apollo Client `QueryManager` (due to a cache miss). The default value is `false` for backwards-compatibility's sake, but should be changed to true for most use-cases.</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>
<dt>`returnPartialData`: boolean</dt>
<dd>Opt into receiving partial results from the cache for queries that are not fully satisfied by the cache. `false` by default.</dd>
</dl>

### Render prop function
Expand Down
2 changes: 2 additions & 0 deletions docs/source/essentials/queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ The Query component accepts the following props. Only `query` and `children` are
<dd>Shared context between your Query component and your network interface (Apollo Link). Useful for setting headers from props or sending information to the <code>request</code> function of Apollo Boost.</dd>
<dt><code>partialRefetch</code>: boolean</dt>
<dd>If <code>true</code>, perform a query <code>refetch</code> if the query result is marked as being partial, and the returned data is reset to an empty Object by the Apollo Client <code>QueryManager</code> (due to a cache miss). The default value is <code>false</code> for backwards-compatibility's sake, but should be changed to true for most use-cases.</dd>
<dt><code>returnPartialData</code>: boolean</dt>
<dd>Opt into receiving partial results from the cache for queries that are not fully satisfied by the cache. <code>false</code> by default.</dd>
</dl>

### Render prop function
Expand Down

0 comments on commit a0e14f3

Please sign in to comment.