-
-
Notifications
You must be signed in to change notification settings - Fork 642
Implement in-memory cache and offline caching. #7
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
Conversation
eusdima
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote the cache so it should work ✌️
|
how to user client.cache.read() or client.cache.write() ?? what i am suppose to send as key ??? |
|
🎉 This PR is included in version 1.0.0-beta.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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)
Special thanks to @eusdima for his work on the cache. 🚀