graphql-flutter
graphql-flutter copied to clipboard
[Feature request] NetworkStatus enum in result
Is your feature request related to a problem? Please describe. During the usage of this package I could not determine clearly what the current state is.
Describe the solution you'd like
As far as this library inspired by apollo client
there is a good feature(from my perspective) that is not implemented yet. The networkStatus
enum.
https://github.com/apollographql/apollo-client/blob/master/src/core/networkStatus.ts
Describe alternatives you've considered Currently I’m working on bloc abstraction over the watch query which helps to overcome this issue.
We do have a QueryLifecycle
which could be improved and exposed better
https://github.com/zino-app/graphql-flutter/blob/bdec86c45973ac6ee2dd70fe15e1e4378533b455/packages/graphql/lib/src/core/observable_query.dart#L13-L23
future ref: apollo "Inspecting loading states" docs