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.25k stars 620 forks source link

Subscription- Bad State : stream has already been listened to. #1223

Closed Arpit1496 closed 1 year ago

Arpit1496 commented 2 years ago

Hey, I recently got this problem again. But this time, 1st time the socket connects and works perfectly fine. But on navigating back and forth to the same widget throws this error.

Are we supposed dispose something even when using hooks generated by codegen ? Am I missing something ?

Originally posted by @Arpit1496 in https://github.com/zino-hofmann/graphql-flutter/issues/1191#issuecomment-1230804072

vincenzopalazzo commented 2 years ago

navigating back and forth to the same widget throws this error.

need a reproducible! You can use https://api.chat.graphql-flutter.dev/graphql

vincenzopalazzo commented 1 year ago

closing for lack of reproducible, feel free to reopen it if you find a good example