zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.24k stars 612 forks source link

Subscription callback onSubscriptionResult not called #1313

Open PhilippS93 opened 1 year ago

PhilippS93 commented 1 year ago

Describe the issue I´m using the subscription widgets and there the onSubscriptionResult callbacks. I noticed that the callback is never called.

In the code here, the onSubscriptionResult callback seems to not being passed to the useSubscriptionOnClient function.

Is this intended?

To Reproduce (MUST BE PROVIDED)

1) Add a Subscription widget to the widget tree 2) Add onSubscriptionResult callback 3) trigger subscription -> callback is not called

Expected behavior Callback should be called

device / execution context Android

I added a pull request to solve the issue -> https://github.com/zino-hofmann/graphql-flutter/pull/1312