File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed
Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 11# graphql-ruby-client
22
3+ ## 1.7.11 (15 June 2020)
4+
5+ - Ably: Improve channel state handling in case the initial subscription result contains errors #2993
6+
37## 1.7.10 (13 June 2020)
48
59- Ably: Improve error handling and channel cleanup #2991
Original file line number Diff line number Diff line change 11{
22 "name" : " graphql-ruby-client" ,
3- "version" : " 1.7.10 " ,
3+ "version" : " 1.7.11 " ,
44 "description" : " JavaScript client for graphql-ruby" ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ function createAblyHandler(options: AblyHandlerOptions) {
122122 // When you get an update from ably, give it to Relay
123123 channel . subscribe ( "update" , updateHandler )
124124
125+ // Dispatch the result _after_ setting up the channel,
126+ // because Relay might immediately dispose of the subscription.
127+ // (In that case, we want to make sure the channel is cleaned up properly.)
125128 dispatchResult ( response . body )
126129 } catch ( error ) {
127130 observer . onError ( error )
You can’t perform that action at this time.
0 commit comments