-
-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run query in a MV* pattern #4
Labels
question
Further information is requested
Comments
For now, you can import the client.dart and call the method execute(). We will try to add a more elegant solution in the near future. |
Thank you for the quick respond, it's working perfectly! |
micimize
pushed a commit
that referenced
this issue
Mar 31, 2019
hantrungkien
pushed a commit
to hantrungkien/graphql-flutter
that referenced
this issue
May 24, 2024
1. Upgrate: connectivity_plus: ^6.0.3 for graphql_flutter package. 2. Resolve: error is throwed from graphql package (althought it doesn't make any crash) when toggleConnection != null [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: ValueStream has no value. You should check ValueStream.hasValue before accessing ValueStream.value, or use ValueStream.valueOrNull instead. #0 BehaviorSubject.value (package:rxdart/src/subjects/behavior_subject.dart:146:5) zino-hofmann#1 SocketClient._listenToToggleConnection.<anonymous closure> (package:graphql/src/links/websocket_link/websocket_client.dart:264:40) zino-hofmann#2 _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10) zino-hofmann#3 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11) zino-hofmann#4 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7) zino-hofmann#5 _MultiStreamController.addSync (dart:async/stream_impl.dart:1101:36) zino-hofmann#6 _MultiControllerSink.add (package:rxdart/src/utils/forwarding_stream.dart:130:35) zino-hofmann#7 _TakeUntilStreamSink.onData (package:rxdart/src/transformers/take_until.dart:13:31)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now, if I understand correctly the query is a widget so it's building the UI with the result of the query.
Is it possible to run a query outside of a widget and just fet the result ?
The text was updated successfully, but these errors were encountered: