fix: wait for all subscription to cancel
MODIFY
packages/graphql/lib/src/core/observable_query.dart
packages/graphql/lib/src/core/observable_query.dart
@@ -221,7 +221,7 @@ class ObservableQuery {
}
for (StreamSubscription<QueryResult> subscription in _onDataSubscriptions) {
- subscription.cancel();
+ await subscription.cancel();
}
stopPolling();

fix: wait for all subscription to cancel