Skip to content

Commit a0e14f3

Browse files
authored
Merge pull request #4969 from apollographql/hwillson/return-partial-data
Add `returnPartialData` to the API docs
2 parents 7be7b38 + b4d23ae commit a0e14f3

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
### Apollo Client (vNext)
66

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

1011

1112
## Apollo Client (2.6.2)

docs/source/api/react-apollo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ The Query component accepts the following props. Only `query` and `children` are
8787
<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>
8888
<dt>`client`: ApolloClient</dt>
8989
<dd>An `ApolloClient` instance. By default `Query` uses the client passed down via context, but a different client can be passed in.</dd>
90+
<dt>`returnPartialData`: boolean</dt>
91+
<dd>Opt into receiving partial results from the cache for queries that are not fully satisfied by the cache. `false` by default.</dd>
9092
</dl>
9193

9294
### Render prop function

docs/source/essentials/queries.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ The Query component accepts the following props. Only `query` and `children` are
271271
<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>
272272
<dt><code>partialRefetch</code>: boolean</dt>
273273
<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>
274+
<dt><code>returnPartialData</code>: boolean</dt>
275+
<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>
274276
</dl>
275277

276278
### Render prop function

0 commit comments

Comments
 (0)