Skip to content

Conversation

@HofmannZ
Copy link
Member

@HofmannZ HofmannZ commented Jun 21, 2018

  • Implemented in-memory cache.
  • Write memory to file when in background.
  • Added provider widget to save and restore the in-memory cache.
  • Restructure the project.

Special thanks to @eusdima for his work on the cache. 🚀

@HofmannZ HofmannZ added the enhancement New feature or request label Jun 21, 2018
@HofmannZ HofmannZ requested a review from a team June 21, 2018 16:10
@HofmannZ HofmannZ mentioned this pull request Jun 21, 2018
Copy link
Contributor

@eusdima eusdima left a 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 ✌️

@eusdima eusdima changed the title [WIP] Implement in-memory cache [WIP] Implement in-memory cache and offline caching. Jun 22, 2018
@HofmannZ HofmannZ changed the title [WIP] Implement in-memory cache and offline caching. Implement in-memory cache and offline caching. Jun 22, 2018
@HofmannZ HofmannZ merged commit c9687ca into master Jun 22, 2018
@krunaldodiya
Copy link

how to user client.cache.read() or client.cache.write() ?? what i am suppose to send as key ???

@HofmannZ
Copy link
Member Author

🎉 This PR is included in version 1.0.0-beta.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@HofmannZ
Copy link
Member Author

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

hantrungkien pushed a commit to hantrungkien/graphql-flutter that referenced this pull request 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

Labels

enhancement New feature or request released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants