gql-dart / ferry

Stream-based strongly typed GraphQL client for Dart
https://ferrygraphql.com/
MIT License
602 stars 116 forks source link

When FetchPolicy is CacheAndNetwork and offline no response from cache #501

Closed francescreig closed 1 year ago

francescreig commented 1 year ago

Hello,

I have one small issue. When I set my default fetch policy FetchPolicy.CacheAndNetwork and when I am offline, when I am using the Operation widget, I did not receive any response form the cache, even though I have the information cached (when I switch to CacheFirst in offline, it returns data from the cache).

Do you know why it could happen?

Thank you in advance

knaeckeKami commented 1 year ago

can you share a reproducible example?

francescreig commented 1 year ago

Closing since it was outdated. There was a misunderstanding when creating the OfflineMutationTypedLink