apollo-client v2.4.0 Release Notes
Release Date: 2018-08-17 // over 5 years ago-
- โ Add proper error handling for subscriptions. If you have defined an
error
handler on your subscription observer, it will now be called when an error comes back in a result, and thenext
handler will be skipped (similar to how we're handling errors with mutations). Previously, the error was just passed in the result to thenext
handler. If you don't have anerror
handler defined, the previous functionality is maintained, meaning the error is passed in the result, giving the next handler a chance to deal with it. This should help address backwards compatibility (and is the reason for the minor version bumo in this release). @clayne11 in #3800 - ๐ Allow an
optimistic
param to be passed intoApolloClient.readQuery
andApolloClient.readFragment
, that when set totrue
, will allow optimistic results to be returned. Isfalse
by default. @jay1337 in #2429 - โ Optimistic tests cleanup. @joshribakoff in #3713
- ๐ฆ Make sure each package has its own
.npmignore
, so they're taken into consideration when publishing via lerna. @hwillson in #3828 - ๐ Documentation updates. @toolness in #3804 @pungggi in #3798 @lorensr in #3748 @joshribakoff in #3730 @yalamber in #3819 @pschreibs85 in #3812 @msreekm in #3808 @kamaltmo in #3806 @lorensr in #3739 @brainkim in #3680
- โ Add proper error handling for subscriptions. If you have defined an