Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' into issue-3482
Browse files Browse the repository at this point in the history
  • Loading branch information
hwillson committed Sep 11, 2019
2 parents e42a988 + 0197027 commit c777687
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Changelog.md
Expand Up @@ -14,10 +14,13 @@

## 3.1.0 (2019-09-06)

### Bug Fixes
### Potentially Breaking Change

- Change the default query `data` state from `{}` to `undefined`. This change aligns all parts of the React Apollo query cycle so that `data` is always `undefined` if there is no data, instead of `data` being converted into an empty object. This change impacts the initial query response, initial SSR response, `data` value when errors occur, `data` value when skipping, etc. All of these areas are now aligned to only ever return a value for `data` if there really is a value to return (instead of making it seem like there is one by converting to `{}`). <br/>
[@hwillson](https://github.com/hwillson) in [#3388](https://github.com/apollographql/react-apollo/pull/3388)

### Bug Fixes

- Adds support for the `skip` option when using `useSubscription`. <br/>
[@n1ru4l](https://github.com/n1ru4l) in [#3356](https://github.com/apollographql/react-apollo/pull/3356)
- Makes sure `refetch`, `fetchMore`, `updateQuery`, `startPolling`, `stopPolling`, and `subscribeToMore` maintain a stable identity when they're passed back alongside query results. <br/>
Expand Down

0 comments on commit c777687

Please sign in to comment.