graphql-flutter icon indicating copy to clipboard operation
graphql-flutter copied to clipboard

[Feature request] NetworkStatus enum in result

Open vasilich6107 opened this issue 4 years ago • 1 comments

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.

vasilich6107 avatar Apr 14 '20 05:04 vasilich6107

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

micimize avatar May 09 '20 01:05 micimize