Replies: 2 comments 3 replies
-
Maybe some caching policy can help you in this case? graphql-flutter/packages/graphql/lib/src/core/policies.dart Lines 22 to 37 in fa35fd7 Yes off curse, this type of policy don't have any different between connection on/connection off But is somethings that we can start to discuss a little bit |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, unfortunately, Fetch Policy does not affect this issue in any way. I would like that in the absence of an Internet connection, a mutation occurs in the cache and the result is returned to me. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. I may not have quite a trivial task, but there is no solution to it, due to the fact that you do not have its implementation. Tell me, could you add the following function to the client: when a mutation is made, when the Internet is turned off (I use a self-written Link on offline mutation), in response to a mutation I get data: null. In order to update the cache manually, I need to get the data. Therefore, I have a question, is it possible to add to the client the ability to display mutated data in the update handler in the result when the Internet is turned off? That would be very cool! Thank you!
Beta Was this translation helpful? Give feedback.
All reactions