Skip to content

Commit ec4d698

Browse files
committed
js-1.7.11
1 parent 9094118 commit ec4d698

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

javascript_client/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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

javascript_client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",

javascript_client/src/subscriptions/createAblyHandler.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)