Skip to content

Commit 79c80fc

Browse files
Merge pull request #1435 from hantrungkien/main
fix(graphql): fix error is throwed when toggleConnection != null & fix(graphql_flutter): upgrate connectivity_plus
2 parents c0621cc + def3290 commit 79c80fc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/graphql/lib/src/links/websocket_link/websocket_client.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ class SocketClient {
215215
final SocketClientConfig config;
216216

217217
final BehaviorSubject<SocketConnectionState> _connectionStateController =
218-
BehaviorSubject<SocketConnectionState>();
218+
BehaviorSubject<SocketConnectionState>.seeded(
219+
SocketConnectionState.notConnected);
219220

220221
final HashMap<String, SubscriptionListener> _subscriptionInitializers =
221222
HashMap();

packages/graphql_flutter/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies:
1515
meta: ^1.7.0
1616
path_provider: ^2.0.1
1717
path: ^1.8.0
18-
connectivity_plus: ^6.0.1
18+
connectivity_plus: ^6.0.3
1919
hive: ^2.0.0
2020
plugin_platform_interface: ^2.0.0
2121
flutter_hooks: '>=0.18.2 <0.21.0'

0 commit comments

Comments
 (0)